TestPGLog.cc: fix -Wsign-compare

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2015-04-15 12:22:29 +02:00
parent b1dd699adb
commit 3b60f5f69d

View File

@ -1939,12 +1939,12 @@ TEST_F(PGLogTest, filter_log_1) {
// Some should be removed
log.filter_log(pgid, *osdmap, hit_set_namespace);
EXPECT_LE(log.log.size(), total);
EXPECT_LE(log.log.size(), (size_t)total);
// If we filter a second time, there should be the same total
total = log.log.size();
log.filter_log(pgid, *osdmap, hit_set_namespace);
EXPECT_EQ(log.log.size(), total);
EXPECT_EQ(log.log.size(), (size_t)total);
// Increase pg_num as if there would be a split
int new_pg_num = pg_num * 16;
@ -1961,7 +1961,7 @@ TEST_F(PGLogTest, filter_log_1) {
// We should have fewer entries after a filter
log.filter_log(pgid, *osdmap, hit_set_namespace);
EXPECT_LE(log.log.size(), total);
EXPECT_LE(log.log.size(), (size_t)total);
// Make sure all internal entries are retained
int count = 0;