diff options
author | Vitaly Buka <vitalybuka@google.com> | 2016-12-27 02:05:24 +0000 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2016-12-27 02:05:24 +0000 |
commit | 0d5b5ffdc01d7a4a6c8508f35d3ee6eb56b2ed54 (patch) | |
tree | 80f32fbfa5438ec50129b51fff45e0bfcf67e9fa | |
parent | 1539663035b25e13b8dbe16bf3df1cf53d2fe280 (diff) | |
download | compiler-rt-0d5b5ffdc01d7a4a6c8508f35d3ee6eb56b2ed54.tar.gz |
[tsan] Fix string to bool conversion warnings in tsan tests
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@290568 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/tsan/tests/rtl/tsan_test_util_posix.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tsan/tests/rtl/tsan_test_util_posix.cc b/lib/tsan/tests/rtl/tsan_test_util_posix.cc index 01e3f7c40..834a271aa 100644 --- a/lib/tsan/tests/rtl/tsan_test_util_posix.cc +++ b/lib/tsan/tests/rtl/tsan_test_util_posix.cc @@ -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; } |