]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: fix ut test failure caused by lfn change 8544/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 12 Apr 2016 01:06:36 +0000 (09:06 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 12 Apr 2016 01:06:36 +0000 (09:06 +0800)
"https://github.com/ceph/ceph/pull/8496/commits/755c685f2d09c36b53bc39589a77fa73faba5149"
change the lfn_parse_object_name() return type from bool to int but does not
change the relevant test correspondingly.

Fixes: http://tracker.ceph.com/issues/15464
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/test/os/TestLFNIndex.cc

index ad4cb75e0119164a5e729d76eccf8d84c0c02876..1ff2e4d8bd22af0ef8fe1337bc98f9e24f8922e8 100644 (file)
@@ -49,7 +49,7 @@ public:
     const std::string mangled_name = lfn_generate_object_name(hoid);
     EXPECT_EQ(mangled_expected, mangled_name);
     ghobject_t hoid_parsed;
-    EXPECT_TRUE(lfn_parse_object_name(mangled_name, &hoid_parsed));
+    EXPECT_EQ(0, lfn_parse_object_name(mangled_name, &hoid_parsed));
     EXPECT_EQ(hoid, hoid_parsed);
   }