]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-replay: Fix compiler warning in unit tests
authorAdam Crume <adamcrume@gmail.com>
Thu, 7 Aug 2014 16:05:00 +0000 (09:05 -0700)
committerSage Weil <sage@redhat.com>
Thu, 21 Aug 2014 17:57:32 +0000 (10:57 -0700)
commitf64776acf4aa018c19303b417bb0dd82e93020ba
treef60e8b007ac2828e520addc1e1207104c925581a
parentc78f994ec0ce3b87b1aa229b45e23c74df6897b6
rbd-replay: Fix compiler warning in unit tests

Was getting:
test/test_rbd_replay.cc:44:3: warning: converting ‘false’ to pointer type for argument 1 of ‘char testing::internal::IsNullLiteralHelper(testing::internal::Secret*)’ [-Wconversion-null]

Fixed by changing EXPECT_EQ(false, xxx) to EXPECT_FALSE(xxx).
For completeness, also changed EXPECT_EQ(true, xxx) to EXPECT_TRUE(xxx).

Signed-off-by: Adam Crume <adamcrume@gmail.com>
src/test/test_rbd_replay.cc