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 | a7c0f5fbb8beb1d4651215e08b5750b77abd59b2 (patch) | |
tree | 5b8936b78fc6186233dad4beec221b48d1dc44f8 /test/tsan/inlined_memcpy_race.cc | |
parent | d9e994edcd721d505f2c8c66953532177552df06 (diff) |
Make tsan tests more portable (take 2)
Using stderr more uniformily, 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@266294 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan/inlined_memcpy_race.cc')
-rw-r--r-- | test/tsan/inlined_memcpy_race.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tsan/inlined_memcpy_race.cc b/test/tsan/inlined_memcpy_race.cc index 720f2bfca..4d5de8852 100644 --- a/test/tsan/inlined_memcpy_race.cc +++ b/test/tsan/inlined_memcpy_race.cc @@ -24,7 +24,7 @@ int main() { pthread_create(&t[1], NULL, MemSetThread, x); pthread_join(t[0], NULL); pthread_join(t[1], NULL); - printf("PASS\n"); + fprintf(stderr, "PASS\n"); return 0; } |