From: Yan, Zheng Date: Thu, 30 Jul 2015 10:15:18 +0000 (+0800) Subject: TestLFNIndex.cc: don't use "cp --preserve=xattr" X-Git-Tag: v9.1.0~259^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6a03fa5bbe5b2c9ae6d45cd190b26e2178bef79d;p=ceph.git TestLFNIndex.cc: don't use "cp --preserve=xattr" --preserve option is not supported by OSX's cp. use 'cp -a' instead Signed-off-by: Yan, Zheng --- diff --git a/src/test/os/TestLFNIndex.cc b/src/test/os/TestLFNIndex.cc index 37733af57c9..5e44355c1e7 100644 --- a/src/test/os/TestLFNIndex.cc +++ b/src/test/os/TestLFNIndex.cc @@ -308,7 +308,7 @@ TEST_F(TestLFNIndex, remove_object) { std::string mangled_name_1 = mangled_name; mangled_name_1.replace(mangled_name_1.find("0_long"), 6, "1_long"); const std::string pathname_1("PATH_1/" + mangled_name_1); - const std::string cmd("cp --preserve=xattr " + pathname + " " + pathname_1); + const std::string cmd("cp -a " + pathname + " " + pathname_1); EXPECT_EQ(0, ::system(cmd.c_str())); const string ATTR = "user.MARK"; EXPECT_EQ((unsigned)1, (unsigned)chain_setxattr(pathname_1.c_str(), ATTR.c_str(), "Y", 1));