diff --git a/tools/ldb_cmd_test.cc b/tools/ldb_cmd_test.cc index 4df241aa7..b3a9823b8 100644 --- a/tools/ldb_cmd_test.cc +++ b/tools/ldb_cmd_test.cc @@ -6,7 +6,6 @@ #ifndef ROCKSDB_LITE #include "tools/ldb_cmd.h" -#include #include "util/testharness.h" class LdbCmdTest : public testing::Test {}; @@ -26,7 +25,7 @@ TEST_F(LdbCmdTest, HexToString) { EXPECT_EQ(expected[i], static_cast(actual[i])); } auto reverse = rocksdb::LDBCommand::StringToHex(actual); - EXPECT_EQ(strcasecmp(inPair.first.c_str(), reverse.c_str()), 0); + EXPECT_STRCASEEQ(inPair.first.c_str(), reverse.c_str()); } }