diff options
author | Renato Golin <renato.golin@linaro.org> | 2016-03-02 11:10:02 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2016-03-02 11:10:02 +0000 |
commit | ba29b5794c0302bf7071afeca019260affdf179c (patch) | |
tree | d0af37bdd0e023d2aaac70c88730d5b58da0fcff /compiler-rt/test/tsan/interface_atomic_test.c | |
parent | f0f24628cbbdc4f57a35b039f532dc965e1ae3c0 (diff) | |
download | bcm5719-llvm-ba29b5794c0302bf7071afeca019260affdf179c.tar.gz bcm5719-llvm-ba29b5794c0302bf7071afeca019260affdf179c.zip |
[RT] Make tsan tests more portable
by avoiding potential races when scanning stdout and stderr output.
Patch by Maxim Kuvyrkov.
llvm-svn: 262476
Diffstat (limited to 'compiler-rt/test/tsan/interface_atomic_test.c')
-rw-r--r-- | compiler-rt/test/tsan/interface_atomic_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/tsan/interface_atomic_test.c b/compiler-rt/test/tsan/interface_atomic_test.c index 18d860ea02e..99f6074df41 100644 --- a/compiler-rt/test/tsan/interface_atomic_test.c +++ b/compiler-rt/test/tsan/interface_atomic_test.c @@ -9,7 +9,7 @@ int main() { int res = __tsan_atomic32_load(&a, __tsan_memory_order_acquire); if (res == 100) { // CHECK: PASS - printf("PASS\n"); + fprintf(stderr, "PASS\n"); return 0; } return 1; |