summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-02-22 14:57:45 -0800
committerSage Weil <sage@inktank.com>2013-02-22 14:57:45 -0800
commit64267eb3d8cecac4f447d9545a55741bade0292e (patch)
tree422162125a982b107c45082bff4dcb272bf16895
parent53586e71f3beb22cab70d81ceaf0fed697086530 (diff)
downloadceph-64267eb3d8cecac4f447d9545a55741bade0292e.tar.gz
test/librados/watch_notify: fix warning
In file included from test/librados/watch_notify.cc:8:0: ../src/gtest/include/gtest/gtest.h: In function ‘testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int, T2 = int]’: ../src/gtest/include/gtest/gtest.h:1300:30: instantiated from ‘static testing::AssertionResult testing::internal::EqHelper::Compare(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int, T2 = int, bool lhs_is_null_literal = false]’ test/librados/watch_notify.cc:67:224: instantiated from here warning: ../src/gtest/include/gtest/gtest.h:1263:3: comparison between signed and unsigned integer expressions [-Wsign-compare] Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/test/librados/watch_notify.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/librados/watch_notify.cc b/src/test/librados/watch_notify.cc
index d6cb8a0cee3..2fdb44dda8f 100644
--- a/src/test/librados/watch_notify.cc
+++ b/src/test/librados/watch_notify.cc
@@ -64,7 +64,7 @@ TEST(LibRadosWatchNotify, WatchNotifyTestPP) {
ASSERT_EQ(0, ioctx.watch("foo", 0, &handle, &ctx));
std::list<obj_watch_t> watches;
ASSERT_EQ(0, ioctx.list_watchers("foo", &watches));
- ASSERT_EQ(watches.size(), 1);
+ ASSERT_EQ(watches.size(), 1u);
bufferlist bl2;
ASSERT_EQ(0, ioctx.notify("foo", 0, bl2));
TestAlarm alarm;