[compiler-rt] r180787 - tsan: comment out debug output in test
Dmitry Vyukov
dvyukov at google.com
Tue Apr 30 06:09:31 PDT 2013
Author: dvyukov
Date: Tue Apr 30 08:09:31 2013
New Revision: 180787
URL: http://llvm.org/viewvc/llvm-project?rev=180787&view=rev
Log:
tsan: comment out debug output in test
Modified:
compiler-rt/trunk/lib/tsan/lit_tests/unaligned_race.cc
Modified: compiler-rt/trunk/lib/tsan/lit_tests/unaligned_race.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/lit_tests/unaligned_race.cc?rev=180787&r1=180786&r2=180787&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/lit_tests/unaligned_race.cc (original)
+++ compiler-rt/trunk/lib/tsan/lit_tests/unaligned_race.cc Tue Apr 30 08:09:31 2013
@@ -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
More information about the llvm-commits
mailing list