summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/tsan/fork_multithreaded.cc
diff options
context:
space:
mode:
authorKuba Brecka <kuba.brecka@gmail.com>2015-11-19 17:28:46 +0000
committerKuba Brecka <kuba.brecka@gmail.com>2015-11-19 17:28:46 +0000
commit153594694b8bb4476b511983adbfaf14eeebdd8e (patch)
tree9e84ac33e2606668c4b6853083c1c4fa8d5f3ec3 /compiler-rt/test/tsan/fork_multithreaded.cc
parent85c21f0a6e646e56bd394b2a819ad03db5666183 (diff)
downloadbcm5719-llvm-153594694b8bb4476b511983adbfaf14eeebdd8e.tar.gz
bcm5719-llvm-153594694b8bb4476b511983adbfaf14eeebdd8e.zip
[tsan] Implement "%env_tsan_opts" substitution to inherit default TSAN_OPTIONS
We already have %env_asan_opts for ASan, let's implement the same for TSan. Differential Revision: http://reviews.llvm.org/D14698 llvm-svn: 253579
Diffstat (limited to 'compiler-rt/test/tsan/fork_multithreaded.cc')
-rw-r--r--compiler-rt/test/tsan/fork_multithreaded.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/tsan/fork_multithreaded.cc b/compiler-rt/test/tsan/fork_multithreaded.cc
index 24e0987e770..b345f58ad0c 100644
--- a/compiler-rt/test/tsan/fork_multithreaded.cc
+++ b/compiler-rt/test/tsan/fork_multithreaded.cc
@@ -1,5 +1,5 @@
// RUN: %clangxx_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s -check-prefix=CHECK-DIE
-// RUN: %clangxx_tsan -O1 %s -o %t && TSAN_OPTIONS="die_after_fork=0" %run %t 2>&1 | FileCheck %s -check-prefix=CHECK-NODIE
+// RUN: %clangxx_tsan -O1 %s -o %t && %env_tsan_opts=die_after_fork=0 %run %t 2>&1 | FileCheck %s -check-prefix=CHECK-NODIE
// UNSUPPORTED: darwin
#include "test.h"
#include <errno.h>
OpenPOWER on IntegriCloud