summaryrefslogtreecommitdiff
path: root/test/tsan/fd_dup_race.cc
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2016-04-15 12:34:00 +0000
committerRenato Golin <renato.golin@linaro.org>2016-04-15 12:34:00 +0000
commit446f7f58b1312ecde02517bbc1b351d69d0c86b7 (patch)
treecb57afd1fbcafbcb229901a52992674346634a22 /test/tsan/fd_dup_race.cc
parent64dbe06997a8d533adb94e6e9e5eca491a93181d (diff)
[TSAN] Make tsan tests more portable (take 3)
Some tests didn't merge stderr with stdout. Patch by Maxim Kuvyrkov. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@266426 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan/fd_dup_race.cc')
-rw-r--r--test/tsan/fd_dup_race.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tsan/fd_dup_race.cc b/test/tsan/fd_dup_race.cc
index a1aee5500..d665eebff 100644
--- a/test/tsan/fd_dup_race.cc
+++ b/test/tsan/fd_dup_race.cc
@@ -27,7 +27,7 @@ int main() {
exit(printf("dup2 failed\n"));
barrier_wait(&barrier);
pthread_join(th, 0);
- printf("DONE\n");
+ fprintf(stderr, "DONE\n");
}
// CHECK: WARNING: ThreadSanitizer: data race