Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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
  • Loading branch information
Julian Lettner committed Apr 12, 2021
1 parent 5354a21 commit 05df5c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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
Expand Down

0 comments on commit 05df5c5

Please sign in to comment.