tsan: comment out debug output in test

llvm-svn: 180787
This commit is contained in:
Dmitry Vyukov 2013-04-30 13:09:31 +00:00
parent 6d3709430f
commit db7d9e5db4
1 changed files with 3 additions and 5 deletions

View File

@ -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