summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage.weil@dreamhost.com>2012-01-29 20:56:03 -0800
committerSage Weil <sage.weil@dreamhost.com>2012-01-29 21:08:02 -0800
commitd3590b5edfaa6385ae207518aaa11af570bcd0eb (patch)
treeb94cba5286c73af16c22531ce1852a37abf33592
parente9e212f8df27ba45f54a8429d515ca4f420d9838 (diff)
downloadceph-d3590b5edfaa6385ae207518aaa11af570bcd0eb.tar.gz
qa: test/gather fix warning
warning: test/gather.cc:29:222: passing NULL to non-pointer argument 3 of ‘static testing::AssertionResult testing::internal::EqHelper::Compare(const char*, const char*, const T1&, T2*) [with T1 = long int, T2 = C_Gather]’ [-Wconversion-null] Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
-rw-r--r--src/test/gather.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/gather.cc b/src/test/gather.cc
index 61797931eca..92bec7650c6 100644
--- a/src/test/gather.cc
+++ b/src/test/gather.cc
@@ -26,7 +26,7 @@ public:
TEST(ContextGather, Constructor) {
C_GatherBuilder gather(g_ceph_context);
EXPECT_FALSE(gather.has_subs());
- EXPECT_EQ(NULL, gather.get());
+ EXPECT_TRUE(gather.get() == NULL);
}
TEST(ContextGather, OneSub) {