From ba29b5794c0302bf7071afeca019260affdf179c Mon Sep 17 00:00:00 2001 From: Renato Golin Date: Wed, 2 Mar 2016 11:10:02 +0000 Subject: [RT] Make tsan tests more portable by avoiding potential races when scanning stdout and stderr output. Patch by Maxim Kuvyrkov. llvm-svn: 262476 --- compiler-rt/test/tsan/virtual_inheritance_compile_bug.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler-rt/test/tsan/virtual_inheritance_compile_bug.cc') 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 -- cgit v1.2.3