[compiler-rt] r177519 - tsan: fix incorrect test
Dmitry Vyukov
dvyukov at google.com
Wed Mar 20 06:49:46 PDT 2013
Author: dvyukov
Date: Wed Mar 20 08:49:45 2013
New Revision: 177519
URL: http://llvm.org/viewvc/llvm-project?rev=177519&view=rev
Log:
tsan: fix incorrect test
Modified:
compiler-rt/trunk/lib/tsan/tests/unit/tsan_mutexset_test.cc
Modified: compiler-rt/trunk/lib/tsan/tests/unit/tsan_mutexset_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/tests/unit/tsan_mutexset_test.cc?rev=177519&r1=177518&r2=177519&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/tests/unit/tsan_mutexset_test.cc (original)
+++ compiler-rt/trunk/lib/tsan/tests/unit/tsan_mutexset_test.cc Wed Mar 20 08:49:45 2013
@@ -115,7 +115,8 @@ TEST(MutexSet, Overflow) {
EXPECT_EQ(mset.Size(), MutexSet::kMaxSize);
for (uptr i = 0; i < MutexSet::kMaxSize; i++) {
if (i == 0)
- Expect(mset, i, 63, true, 64, 2);
+ Expect(mset, i, MutexSet::kMaxSize - 1,
+ true, MutexSet::kMaxSize, 2);
else if (i == MutexSet::kMaxSize - 1)
Expect(mset, i, 100, true, 200, 1);
else
More information about the llvm-commits
mailing list