diff options
author | Adam C. Emerson <aemerson@redhat.com> | 2018-08-29 21:39:09 +0200 |
---|---|---|
committer | Adam C. Emerson <aemerson@redhat.com> | 2018-09-12 18:41:40 +0200 |
commit | 55b011a3c733d2bdd2125dc0c0b8e335d9a5dae2 (patch) | |
tree | 119c821d80519577e309a1094561e180539671dc /src/test/cls_rgw/test_cls_rgw.cc | |
parent | cephfs: Do not catch polymorphic exception by value (diff) | |
download | ceph-55b011a3c733d2bdd2125dc0c0b8e335d9a5dae2.tar.xz ceph-55b011a3c733d2bdd2125dc0c0b8e335d9a5dae2.zip |
test: Fix sign comparison warnings
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Diffstat (limited to 'src/test/cls_rgw/test_cls_rgw.cc')
-rw-r--r-- | src/test/cls_rgw/test_cls_rgw.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/cls_rgw/test_cls_rgw.cc b/src/test/cls_rgw/test_cls_rgw.cc index c97c7e354aa..d09e867ec75 100644 --- a/src/test/cls_rgw/test_cls_rgw.cc +++ b/src/test/cls_rgw/test_cls_rgw.cc @@ -431,12 +431,12 @@ TEST(cls_rgw, index_list) int r = CLSRGWIssueBucketList(ioctx, start_key, "", 1000, true, oids, list_results, 1)(); ASSERT_EQ(r, 0); - ASSERT_EQ(1, list_results.size()); + ASSERT_EQ(1u, list_results.size()); auto it = list_results.begin(); auto m = (it->second).dir.m; - ASSERT_EQ(4, m.size()); + ASSERT_EQ(4u, m.size()); int i = 0; for(auto it2 = m.begin(); it2 != m.end(); it2++, i++) ASSERT_EQ(it2->first.compare(keys[i]), 0); @@ -464,7 +464,7 @@ TEST(cls_rgw, bi_list) int ret = cls_rgw_bi_list(ioctx, bucket_oid, name, marker, max, &entries, &is_truncated); ASSERT_EQ(ret, 0); - ASSERT_EQ(entries.size(), 0); + ASSERT_EQ(entries.size(), 0u); ASSERT_EQ(is_truncated, false); uint64_t epoch = 1; @@ -511,7 +511,7 @@ TEST(cls_rgw, bi_list) ret = cls_rgw_bi_list(ioctx, bucket_oid, name, marker, max, &entries, &is_truncated); ASSERT_EQ(ret, 0); - ASSERT_EQ(entries.size(), 0); + ASSERT_EQ(entries.size(), 0u); ASSERT_EQ(is_truncated, false); if (cct->_conf->osd_max_omap_entries_per_request < 15) { @@ -536,7 +536,7 @@ TEST(cls_rgw, bi_list) ret = cls_rgw_bi_list(ioctx, bucket_oid, name, marker, max, &entries, &is_truncated); ASSERT_EQ(ret, 0); - ASSERT_EQ(entries.size(), 0); + ASSERT_EQ(entries.size(), 0u); ASSERT_EQ(is_truncated, false); } @@ -830,7 +830,7 @@ TEST(cls_rgw, usage_basic) // read the entries, and see that we have all the added entries ASSERT_EQ(0, ret); ASSERT_FALSE(truncated); - ASSERT_EQ(total_usage_entries, usage.size()); + ASSERT_EQ(static_cast<uint64_t>(total_usage_entries), usage.size()); // delete and read to assert that we've deleted all the values ASSERT_EQ(0, cls_rgw_usage_log_trim(ioctx, oid, user, start_epoch, end_epoch)); @@ -839,7 +839,7 @@ TEST(cls_rgw, usage_basic) ret = cls_rgw_usage_log_read(ioctx, oid, user, start_epoch, end_epoch, max_entries, read_iter, usage2, &truncated); ASSERT_EQ(0, ret); - ASSERT_EQ(0, usage2.size()); + ASSERT_EQ(0u, usage2.size()); } @@ -879,7 +879,7 @@ TEST(cls_rgw, usage_clear) ret = cls_rgw_usage_log_read(ioctx, oid, user, start_epoch, end_epoch, max_entries, read_iter, usage, &truncated); ASSERT_EQ(0, ret); - ASSERT_EQ(0, usage.size()); + ASSERT_EQ(0u, usage.size()); } |