]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_rados_api_list: fix warning
authorSage Weil <sage@redhat.com>
Mon, 14 Mar 2016 17:10:36 +0000 (13:10 -0400)
committerSage Weil <sage@redhat.com>
Mon, 14 Mar 2016 17:10:36 +0000 (13:10 -0400)
In file included from ./test/librados/TestCase.h:9:0,
                 from test/librados/list.cc:7:
../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/list.cc:944:5:   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/list.cc

index 17304dd6c268394af2f264b4b60fa156bc3c3d74..b7f0253671281c92b7966ab932692598f305e32a 100644 (file)
@@ -941,7 +941,7 @@ TEST_F(LibRadosListPP, EnumerateObjectsFilterPP) {
     std::vector<ObjectItem> result;
     int r = ioctx.object_list(c, end, 12, filter_bl, &result, &c);
     ASSERT_GE(r, 0);
-    ASSERT_EQ(r, result.size());
+    ASSERT_EQ(r, (int)result.size());
     for (int i = 0; i < r; ++i) {
       auto oid = result[i].oid;
       // We should only see the object that matches the filter