[compiler-rt] d97d930 - [MSAN] send output to stderr in test: pthread_getaffinity_np.

Kevin Athey via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 8 14:16:12 PDT 2022


Author: Kevin Athey
Date: 2022-06-08T14:16:08-07:00
New Revision: d97d930d9233039f4662697f39949472213593ea

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

LOG: [MSAN] send output to stderr in test: pthread_getaffinity_np.

Must send output to stderr to view it.
This will be rolled back when diagnosis is complete.

Depends on: https://reviews.llvm.org/D127320

Differential Revision: https://reviews.llvm.org/D127346

Added: 
    

Modified: 
    compiler-rt/test/sanitizer_common/TestCases/Linux/pthread_getaffinity_np.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/pthread_getaffinity_np.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/pthread_getaffinity_np.cpp
index 019e9fd5e656..cdff7ced8898 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/pthread_getaffinity_np.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/pthread_getaffinity_np.cpp
@@ -16,7 +16,7 @@ int main() {
   cpu_set_t set_x;
   int res = pthread_getaffinity_np(pthread_self(), sizeof(set_x), &set_x);
   if (res != 0)
-    printf("res: %d\n", res);
+    fprintf(stderr, "res: %d\n", res);
   assert(res == 0);
   assert(CPU_COUNT_S(sizeof(set_x), &set_x) == get_nprocs());
 


        


More information about the llvm-commits mailing list