]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: test/gather fix warning
authorSage Weil <sage.weil@dreamhost.com>
Mon, 30 Jan 2012 04:56:03 +0000 (20:56 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Mon, 30 Jan 2012 05:08:02 +0000 (21:08 -0800)
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>
src/test/gather.cc

index 61797931eca909e892ad922e2b105ff8862f2730..92bec7650c617aac25f928ee70b3862168e6a078 100644 (file)
@@ -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) {