]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph_test_rados_api_tmap_migrate: fix warning
authorSage Weil <sage@redhat.com>
Mon, 14 Mar 2016 17:11:49 +0000 (13:11 -0400)
committerSage Weil <sage@redhat.com>
Mon, 14 Mar 2016 17:11:49 +0000 (13:11 -0400)
In file included from ./test/librados/TestCase.h:9:0,
                 from test/librados/tmap_migrate.cc:4:
../src/gmock/gtest/include/gtest/gtest.h: In instantiation of â€˜testing::Asserti$
../src/gmock/gtest/include/gtest/gtest.h:1484:23:   required from â€˜static testi$
test/librados/tmap_migrate.cc:56:3:   required from here
../src/gmock/gtest/include/gtest/gtest.h:1448:16: warning: comparison between s$
   if (expected == actual) {
                ^

Signed-off-by: Sage Weil <sage@redhat.com>
src/test/librados/tmap_migrate.cc

index f79e5849f753baf113e4c87a6d9c91918364ea3f..98be69a1128f22937715b2bc38363b423709e772 100644 (file)
@@ -53,7 +53,7 @@ TEST_F(TmapMigratePP, DataScan) {
   // Check that the TMAP object is now an omap object
   std::map<std::string, bufferlist> read_vals;
   ASSERT_EQ(0, ioctx.omap_get_vals("10000000000.00000000", "", 1, &read_vals));
-  ASSERT_EQ(read_vals.size(), 1);
+  ASSERT_EQ(read_vals.size(), 1u);
   bufferlist tmap_expect_val;
   tmap_expect_val.append("custard");
   ASSERT_EQ(read_vals.at("rhubarb"), tmap_expect_val);
@@ -62,7 +62,7 @@ TEST_F(TmapMigratePP, DataScan) {
   // Check that the OMAP object is still readable
   read_vals.clear();
   ASSERT_EQ(0, ioctx.omap_get_vals("10000000001.00000000", "", 1, &read_vals));
-  ASSERT_EQ(read_vals.size(), 1);
+  ASSERT_EQ(read_vals.size(), 1u);
   bufferlist expect_omap_val;
   expect_omap_val.append("waffles");
   ASSERT_EQ(read_vals.at("tasty"), expect_omap_val);