]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: fixed TestObjectMap.InvalidateFlagInMemoryOnly
authorJason Dillaman <dillaman@redhat.com>
Sun, 5 Jul 2015 14:35:28 +0000 (10:35 -0400)
committerJason Dillaman <dillaman@redhat.com>
Sun, 19 Jul 2015 17:44:16 +0000 (13:44 -0400)
librados and librados_test_stub return different result codes
for a read full object operation.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 2ace2b77f8ed83e753fe4a48bcc997f5d1dd465f)

src/test/librbd/test_ObjectMap.cc

index 70ea7639c7ebfd2fd5fe1bb02a9eec684362286c..5457b9974fd1d204778b6c1e2815010af83b3632 100644 (file)
@@ -104,7 +104,7 @@ TEST_F(TestObjectMap, InvalidateFlagInMemoryOnly) {
 
   std::string oid = librbd::ObjectMap::object_map_name(ictx->id, CEPH_NOSNAP);
   bufferlist valid_bl;
-  ASSERT_EQ(0, ictx->data_ctx.read(oid, valid_bl, 0, 0));
+  ASSERT_LT(0, ictx->data_ctx.read(oid, valid_bl, 0, 0));
 
   bufferlist corrupt_bl;
   corrupt_bl.append("corrupt");