bufferlist in;
r = store->read(cid, hoid, 0, bl.length(), in);
- ASSERT_EQ(bl.length(), r);
+ ASSERT_EQ((int)bl.length(), r);
in.hexdump(cout);
ASSERT_TRUE(in.contents_equal(bl));
}
bufferlist hdr;
map<string,bufferlist> m;
store->omap_get(cid, hoid, &hdr, &m);
- ASSERT_EQ(6, hdr.length());
+ ASSERT_EQ(6u, hdr.length());
ASSERT_TRUE(m.count("2"));
ASSERT_TRUE(!m.count("3"));
ASSERT_TRUE(!m.count("6"));
ASSERT_TRUE(m.count("7"));
ASSERT_TRUE(m.count("8"));
//cout << m << std::endl;
- ASSERT_EQ(6, m.size());
+ ASSERT_EQ(6u, m.size());
}
{
ObjectStore::Transaction t;
bufferlist hdr;
map<string,bufferlist> m;
store->omap_get(cid, hoid, &hdr, &m);
- ASSERT_EQ(0, hdr.length());
- ASSERT_EQ(0, m.size());
+ ASSERT_EQ(0u, hdr.length());
+ ASSERT_EQ(0u, m.size());
}
}
}
ASSERT_EQ(correct, true);
}
- ASSERT_EQ(attrs.size(), count);
+ ASSERT_EQ((int)attrs.size(), count);
// FileStore may deadlock an active iterator vs apply_transaction
iter = ObjectMap::ObjectMapIterator();