From 05df5c54e8e15a444f59c535b2935fc19a90579b Mon Sep 17 00:00:00 2001 From: Julian Lettner Date: Fri, 9 Apr 2021 18:02:39 -0700 Subject: [PATCH] [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 --- compiler-rt/test/tsan/on_initialize_finalize_hooks.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/test/tsan/on_initialize_finalize_hooks.cpp b/compiler-rt/test/tsan/on_initialize_finalize_hooks.cpp index 0b82ec1..3f7b56b 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 -- 2.7.4