[compiler-rt] 678f88e - [lsan] Attempt to fix s390x after a63932a8

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 15 18:02:12 PDT 2022


Author: Vitaly Buka
Date: 2022-03-15T18:02:03-07:00
New Revision: 678f88e0e23f68c3e0f3d45c8b62ce4d3f1c10f6

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

LOG: [lsan] Attempt to fix s390x after a63932a8

Added: 
    

Modified: 
    compiler-rt/test/lsan/TestCases/Linux/dso-unknown.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/lsan/TestCases/Linux/dso-unknown.cpp b/compiler-rt/test/lsan/TestCases/Linux/dso-unknown.cpp
index 2294ab81fdf96..c3eede705fee8 100644
--- a/compiler-rt/test/lsan/TestCases/Linux/dso-unknown.cpp
+++ b/compiler-rt/test/lsan/TestCases/Linux/dso-unknown.cpp
@@ -2,7 +2,7 @@
 // Test that origin tracking is enabled at runtime.
 // RUN: %clangxx_lsan -O0 %s -DBUILD_SO -fPIC -shared -o %t-so.so
 // RUN: %clangxx_lsan -O0 %s -ldl -o %t && not %run %t 2>&1 | FileCheck %s
-// RUN: %clangxx_lsan -O0 %s -ldl -o %t -DSUPPRESS_LEAK && %run %t 2>&1
+// RUN: %clangxx_lsan -O0 %s -ldl -o %t -DSUPPRESS_LEAK && %run %t
 
 #ifdef BUILD_SO
 
@@ -25,7 +25,6 @@ extern "C" const char *__lsan_default_suppressions() {
 }
 #  endif
 
-void *p;
 int main(int argc, char **argv) {
 
   std::string path = std::string(argv[0]) + "-so.so";
@@ -37,9 +36,8 @@ int main(int argc, char **argv) {
   typedef void *(*fn)(unsigned sz);
   fn my_alloc = (fn)dlsym(handle, "my_alloc");
 
-  p = my_alloc(1);
-  p = my_alloc(2);
-  p = my_alloc(3);
+  for (int i = 0; i < 100; ++i)
+    my_alloc(i);
 
   dlclose(handle);
   return 0;


        


More information about the llvm-commits mailing list