]> git.apps.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)
committerAdam Crume <adamcrume@gmail.com>
Wed, 13 Aug 2014 20:58:20 +0000 (13:58 -0700)
commita602bd42c94161ead8d182ea7d501f577ba8b3f1
tree572b3f4f35880cd9719b47f1f1f2ec0f271e2668
parent6be0c2b306e7a9b3fa9f9fa8f56b805eb50458c8
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