[compiler-rt] r290568 - [tsan] Fix string to bool conversion warnings in tsan tests
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 26 18:05:24 PST 2016
Author: vitalybuka
Date: Mon Dec 26 20:05:24 2016
New Revision: 290568
URL: http://llvm.org/viewvc/llvm-project?rev=290568&view=rev
Log:
[tsan] Fix string to bool conversion warnings in tsan tests
Modified:
compiler-rt/trunk/lib/tsan/tests/rtl/tsan_test_util_posix.cc
Modified: compiler-rt/trunk/lib/tsan/tests/rtl/tsan_test_util_posix.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/tests/rtl/tsan_test_util_posix.cc?rev=290568&r1=290567&r2=290568&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/tests/rtl/tsan_test_util_posix.cc (original)
+++ compiler-rt/trunk/lib/tsan/tests/rtl/tsan_test_util_posix.cc Mon Dec 26 20:05:24 2016
@@ -60,11 +60,11 @@ bool OnReport(const ReportDesc *rep, boo
if (rep->typ != expect_report_type) {
printf("Expected report of type %d, got type %d\n",
(int)expect_report_type, (int)rep->typ);
- EXPECT_FALSE("Wrong report type");
+ EXPECT_TRUE(false) << "Wrong report type";
return false;
}
} else {
- EXPECT_FALSE("Unexpected report");
+ EXPECT_TRUE(false) << "Unexpected report";
return false;
}
expect_report_reported = true;
@@ -323,7 +323,7 @@ void ScopedThread::Impl::HandleEvent(Eve
}
if (expect_report && !expect_report_reported) {
printf("Missed expected report of type %d\n", (int)ev->report_type);
- EXPECT_FALSE("Missed expected race");
+ EXPECT_TRUE(false) << "Missed expected race";
}
expect_report = false;
}
More information about the llvm-commits
mailing list