[compiler-rt] f1746be - [Sanitizers] Fix test case that doesn't clean up after itself

Nemanja Ivanovic via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 21:22:20 PDT 2020


Author: Nemanja Ivanovic
Date: 2020-09-22T23:21:00-05:00
New Revision: f1746be66673bc2b59f7aaad1c6a7938ed98194b

URL: https://github.com/llvm/llvm-project/commit/f1746be66673bc2b59f7aaad1c6a7938ed98194b
DIFF: https://github.com/llvm/llvm-project/commit/f1746be66673bc2b59f7aaad1c6a7938ed98194b.diff

LOG: [Sanitizers] Fix test case that doesn't clean up after itself

Commit https://reviews.llvm.org/rG144e57fc9535 added this test
case that creates message queues but does not remove them. The
message queues subsequently build up on the machine until the
system wide limit is reached. This has caused failures for a
number of bots running on a couple of big PPC machines.

This patch just adds the missing cleanup.

Added: 
    

Modified: 
    compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c b/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c
index f00d18174f18..c31abe997068 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c
@@ -33,5 +33,6 @@ int main() {
   assert(len == MSG_BUFLEN);
   assert(msg.mtype == rcv_msg.mtype);
   assert(!memcmp(msg.string, rcv_msg.string, MSG_BUFLEN));
+  msgctl(msgq, IPC_RMID, NULL);
   return 0;
 }


        


More information about the llvm-commits mailing list