diff options
author | Renato Golin <renato.golin@linaro.org> | 2016-04-14 12:10:21 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2016-04-14 12:10:21 +0000 |
commit | 17b8b0625252be3d14609b248c6701fe0d10dbb8 (patch) | |
tree | b3cd4a7617ff121fcbe8dd0e3515472294c87d13 /compiler-rt/test/tsan/java_alloc.cc | |
parent | 217a98c0d115af277b6749c70a8db8e82b4d336b (diff) | |
download | bcm5719-llvm-17b8b0625252be3d14609b248c6701fe0d10dbb8.tar.gz bcm5719-llvm-17b8b0625252be3d14609b248c6701fe0d10dbb8.zip |
Make tsan tests more portable (take 2)
Using stderr more uniformily, avoiding potential races when scanning stdout
and stderr output.
Patch by Maxim Kuvyrkov.
llvm-svn: 266294
Diffstat (limited to 'compiler-rt/test/tsan/java_alloc.cc')
-rw-r--r-- | compiler-rt/test/tsan/java_alloc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/tsan/java_alloc.cc b/compiler-rt/test/tsan/java_alloc.cc index 4a606f7940d..94919a4373a 100644 --- a/compiler-rt/test/tsan/java_alloc.cc +++ b/compiler-rt/test/tsan/java_alloc.cc @@ -26,10 +26,10 @@ int main() { stress(jheap); pthread_join(th, 0); if (__tsan_java_fini() != 0) { - printf("FAILED\n"); + fprintf(stderr, "FAILED\n"); return 1; } - printf("DONE\n"); + fprintf(stderr, "DONE\n"); return 0; } |