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/virtual_inheritance_compile_bug.cc | |
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/virtual_inheritance_compile_bug.cc')
-rw-r--r-- | compiler-rt/test/tsan/virtual_inheritance_compile_bug.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/tsan/virtual_inheritance_compile_bug.cc b/compiler-rt/test/tsan/virtual_inheritance_compile_bug.cc index 7da581d8060..3b1e08b1689 100644 --- a/compiler-rt/test/tsan/virtual_inheritance_compile_bug.cc +++ b/compiler-rt/test/tsan/virtual_inheritance_compile_bug.cc @@ -10,6 +10,6 @@ struct DDD: CCC, BBB { DDD(); }; // NOLINT DDD::DDD() { } int main() { DDD d; - printf("OK\n"); + fprintf(stderr, "OK\n"); } // CHECK: OK |