[tsan] Fix string to bool conversion warnings in tsan tests

llvm-svn: 290568
This commit is contained in:
Vitaly Buka 2016-12-27 02:05:24 +00:00
parent 01bfa68fec
commit b67bfd2fd7
1 changed files with 3 additions and 3 deletions

View File

@ -60,11 +60,11 @@ bool OnReport(const ReportDesc *rep, bool suppressed) {
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(Event *ev) {
}
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;
}