From db7d9e5db4cf2a519cda417ea0682c0c0fa37624 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 30 Apr 2013 13:09:31 +0000 Subject: [PATCH] tsan: comment out debug output in test llvm-svn: 180787 --- compiler-rt/lib/tsan/lit_tests/unaligned_race.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/compiler-rt/lib/tsan/lit_tests/unaligned_race.cc b/compiler-rt/lib/tsan/lit_tests/unaligned_race.cc index f3ce9475fb60..18bed8555cc5 100644 --- a/compiler-rt/lib/tsan/lit_tests/unaligned_race.cc +++ b/compiler-rt/lib/tsan/lit_tests/unaligned_race.cc @@ -107,8 +107,8 @@ void Test(bool main) { for (int sz1 = 0; sz1 < 3; sz1++) { for (int off2 = 0; off2 < accesssize(sz1); off2++) { for (int rw = 0; rw < 2; rw++) { - printf("thr=%d off=%d sz1=%d off2=%d rw=%d p=%p\n", - main, off, sz1, off2, rw, obj); + // printf("thr=%d off=%d sz1=%d off2=%d rw=%d p=%p\n", + // main, off, sz1, off2, rw, obj); access1(main, off, sz1, off2, rw, (char*)obj); obj += 2; } @@ -129,9 +129,7 @@ int main() { pthread_create(&th, 0, Thread, 0); Test(true); pthread_join(th, 0); - printf("OK\n"); } -// WARNING: ThreadSanitizer: data race +// CHECK: WARNING: ThreadSanitizer: data race // CHECK: ThreadSanitizer: reported 224 warnings -// CHECK: OK