summaryrefslogtreecommitdiff
path: root/test/tsan/java_move_overlap_race.cc
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2016-03-02 11:10:02 +0000
committerRenato Golin <renato.golin@linaro.org>2016-03-02 11:10:02 +0000
commitf4faa6e4febbc20e71d0a625020b4f1c3237070e (patch)
tree4a12bab5aa596b09e8057032ae5913c5b74344c2 /test/tsan/java_move_overlap_race.cc
parent7fff5d88a3f43e24f54910cbb2a2c701113d6178 (diff)
downloadcompiler-rt-f4faa6e4febbc20e71d0a625020b4f1c3237070e.tar.gz
[RT] Make tsan tests more portable
by avoiding potential races when scanning stdout and stderr output. Patch by Maxim Kuvyrkov. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@262476 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan/java_move_overlap_race.cc')
-rw-r--r--test/tsan/java_move_overlap_race.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tsan/java_move_overlap_race.cc b/test/tsan/java_move_overlap_race.cc
index 874b90b26..2887fd3fe 100644
--- a/test/tsan/java_move_overlap_race.cc
+++ b/test/tsan/java_move_overlap_race.cc
@@ -46,7 +46,7 @@ int main(int argc, char **argv) {
barrier_wait(&barrier);
pthread_join(th, 0);
__tsan_java_free(varaddr1_new, kBlockSize);
- printf("DONE\n");
+ fprintf(stderr, "DONE\n");
return __tsan_java_fini();
}