From: Sage Weil Date: Mon, 30 Jan 2012 04:56:03 +0000 (-0800) Subject: qa: test/gather fix warning X-Git-Tag: v0.44~111^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d3590b5edfaa6385ae207518aaa11af570bcd0eb;p=ceph.git 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 --- diff --git a/src/test/gather.cc b/src/test/gather.cc index 61797931eca9..92bec7650c61 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) {