[RockdDB] fix build

Summary: assert => ASSERT_TRUE

Test Plan: make release; make check

Reviewers: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D10839
main
Haobo Xu 12 years ago
parent e1174306c5
commit 8a59ed9bc7
  1. 8
      utilities/merge_operators/string_append/stringappend_test.cc

@ -110,7 +110,7 @@ TEST(StringAppendOperatorTest,SimpleTest) {
std::string res; std::string res;
bool status = slists.Get("k1",&res); bool status = slists.Get("k1",&res);
assert(status); ASSERT_TRUE(status);
ASSERT_EQ(res,"v1,v2,v3"); ASSERT_EQ(res,"v1,v2,v3");
} }
@ -165,7 +165,7 @@ TEST(StringAppendOperatorTest,VariousKeys) {
sb = slists.Get("b",&b); sb = slists.Get("b",&b);
sc = slists.Get("c",&c); sc = slists.Get("c",&c);
assert(sa && sb && sc); // All three keys should have been found ASSERT_TRUE(sa && sb && sc); // All three keys should have been found
ASSERT_EQ(a,"x\nt\nr"); ASSERT_EQ(a,"x\nt\nr");
ASSERT_EQ(b,"y\n2"); ASSERT_EQ(b,"y\n2");
@ -356,7 +356,7 @@ TEST(StringAppendOperatorTest,PersistentFlushAndCompaction) {
slists.Append("c","asdasd"); slists.Append("c","asdasd");
db->Flush(leveldb::FlushOptions()); db->Flush(leveldb::FlushOptions());
success = slists.Get("c",&c); success = slists.Get("c",&c);
assert(success == true); ASSERT_TRUE(success);
ASSERT_EQ(c,"asdasd"); ASSERT_EQ(c,"asdasd");
// Append, Flush, Append, Get // Append, Flush, Append, Get
@ -453,7 +453,7 @@ TEST(StringAppendOperatorTest,SimpleTestNullDelimiter) {
std::string res; std::string res;
bool status = slists.Get("k1",&res); bool status = slists.Get("k1",&res);
assert(status); ASSERT_TRUE(status);
// Construct the desired string. Default constructor doesn't like '\0' chars. // Construct the desired string. Default constructor doesn't like '\0' chars.
std::string checker("v1,v2,v3"); // Verify that the string is right size. std::string checker("v1,v2,v3"); // Verify that the string is right size.

Loading…
Cancel
Save