[compiler-rt] 4c23cf3 - [sanitizer_common] Add debug print to sysmsg.c

Matt Morehouse via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 09:10:02 PDT 2020


Author: Matt Morehouse
Date: 2020-09-22T09:08:49-07:00
New Revision: 4c23cf3ca0e07482b7ab7989b4e480e1cc0d6091

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

LOG: [sanitizer_common] Add debug print to sysmsg.c

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 bc7776f2b3d3..f00d18174f18 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c
@@ -11,6 +11,7 @@
 
 int main() {
   int msgq = msgget(IPC_PRIVATE, 0666);
+  if (msgq == -1) perror("msgget:");
   assert(msgq != -1);
 
   struct msg_s {


        


More information about the llvm-commits mailing list