avoid ASSERT_EQ(false, ...);

Summary:
lately it fails on travis due to a compiler bug (see https://github.com/google/googletest/issues/322#issuecomment-125645145). interestingly it seems to affect occurrences of `ASSERT_EQ(false, ...);` but not `ASSERT_EQ(true, ...);`.
Closes https://github.com/facebook/rocksdb/pull/1958

Differential Revision: D4680742

Pulled By: ajkr

fbshipit-source-id: 291fe41
main
Andrew Kryczka 8 years ago committed by Facebook Github Bot
parent 5b11124e39
commit f2817fb7f9
  1. 2
      db/db_test.cc
  2. 4
      table/table_test.cc

@ -5208,7 +5208,7 @@ TEST_F(DBTest, PauseBackgroundWorkTest) {
});
env_->SleepForMicroseconds(200000);
// make sure the thread is not done
ASSERT_EQ(false, done.load());
ASSERT_FALSE(done.load());
db_->ContinueBackgroundWork();
for (auto& t : threads) {
t.join();

@ -1187,9 +1187,9 @@ TEST_F(BlockBasedTableTest, RangeDelBlock) {
// iterator can still access its metablock's range tombstones.
c.ResetTableReader();
}
ASSERT_EQ(false, iter->Valid());
ASSERT_FALSE(iter->Valid());
iter->SeekToFirst();
ASSERT_EQ(true, iter->Valid());
ASSERT_TRUE(iter->Valid());
for (int i = 0; i < 2; i++) {
ASSERT_TRUE(iter->Valid());
ParsedInternalKey parsed_key;

Loading…
Cancel
Save