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)); }