[compiler-rt] 05df5c5 - [TSan] Allow test contents to be copied before execution

Julian Lettner via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 12 13:31:22 PDT 2021


Author: Julian Lettner
Date: 2021-04-12T13:30:06-07:00
New Revision: 05df5c54e8e15a444f59c535b2935fc19a90579b

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

LOG: [TSan] Allow test contents to be copied before execution

Allow test contents to be copied before execution by using
`%ld_flags_rpath_so`, `%ld_flags_rpath_exe`, and `%dynamiclib`
substitutions.

rdar://76302416

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

Added: 
    

Modified: 
    compiler-rt/test/tsan/on_initialize_finalize_hooks.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/tsan/on_initialize_finalize_hooks.cpp b/compiler-rt/test/tsan/on_initialize_finalize_hooks.cpp
index 0b82ec1761794..3f7b56bd636e7 100644
--- a/compiler-rt/test/tsan/on_initialize_finalize_hooks.cpp
+++ b/compiler-rt/test/tsan/on_initialize_finalize_hooks.cpp
@@ -1,5 +1,5 @@
-// RUN: %clang_tsan -O1 %s -o %t.lib -fno-sanitize=thread -shared -fPIC -DBUILD_LIB=1
-// RUN: %clang_tsan -O1 %s %t.lib -o %t
+// RUN: %clang_tsan -O1 %s -DBUILD_LIB=1 -fno-sanitize=thread -shared -fPIC -o %dynamiclib %ld_flags_rpath_so
+// RUN: %clang_tsan -O1 %s -o %t %ld_flags_rpath_exe
 // RUN: %run %t | FileCheck %s
 
 // Test that initialization/finalization hooks are called, even when they are


        


More information about the llvm-commits mailing list