[compiler-rt] 3bedc93 - [test][sanitizer] Remove unnececary `printf` and `gettid`

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 12 21:49:37 PST 2023


Author: Vitaly Buka
Date: 2023-12-12T21:49:23-08:00
New Revision: 3bedc93d844808e88ccbd9a502435ab69e3b1ed1

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

LOG: [test][sanitizer] Remove unnececary `printf` and `gettid`

Fixes sanitizer-ppc64le-linux bot.

Added: 
    

Modified: 
    compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.cpp b/compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.cpp
index e2d67341846c74..83de140196f919 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.cpp
@@ -16,7 +16,6 @@
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/wait.h>
-#include <unistd.h>
 
 #include "sanitizer_common/sanitizer_specific.h"
 
@@ -38,8 +37,6 @@ void ShouldNotDeadlock() {
 #define NOSAN __attribute__((no_sanitize("address", "hwaddress", "memory")))
 
 NOSAN static void *inparent(void *arg) {
-  fprintf(stderr, "inparent %d\n", gettid());
-
   char t[kBufferSize];
   make_mem_bad(t, sizeof(t));
 
@@ -77,7 +74,6 @@ int main(void) {
     }
     break;
   default: {
-    fprintf(stderr, "fork %d\n", pid);
     int status;
     while (waitpid(-1, &status, __WALL) != pid) {
     }


        


More information about the llvm-commits mailing list