From 6f69c73db18a01c06393bb08eb65eb2a5113c782 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Mon, 23 Dec 2013 07:32:23 +0000 Subject: [PATCH] [asan] clean up at the end of the shmget/shmctl test llvm-svn: 197901 --- compiler-rt/lib/asan/lit_tests/TestCases/Linux/shmctl.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler-rt/lib/asan/lit_tests/TestCases/Linux/shmctl.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/shmctl.cc index 9638cedecb2d..2de14776c92d 100644 --- a/compiler-rt/lib/asan/lit_tests/TestCases/Linux/shmctl.cc +++ b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/shmctl.cc @@ -14,4 +14,5 @@ int main() { assert(res > -1); printf("shm_segsz: %zd\n", ds.shm_segsz); assert(ds.shm_segsz == 4096); + assert(-1 != shmctl(id, IPC_RMID, 0)); }