From: Sage Weil Date: Wed, 30 Jan 2013 19:32:23 +0000 (-0800) Subject: test_libcephfs: fix xattr test X-Git-Tag: v0.57~75 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b0d4dd21c7be86eb47728a4702a3c67ca44424ac;p=ceph.git test_libcephfs: fix xattr test Ignore the ceph.*.layout xattrs. Signed-off-by: Sage Weil --- diff --git a/src/test/libcephfs/test.cc b/src/test/libcephfs/test.cc index 62482a08d786..eaf38dba509a 100644 --- a/src/test/libcephfs/test.cc +++ b/src/test/libcephfs/test.cc @@ -423,6 +423,14 @@ TEST(LibCephFS, Xattrs) { char *n; i = 'a'; while(len > 0) { + // skip/ignore the dir layout + if (strcmp(p, "ceph.dir.layout") == 0 || + strcmp(p, "ceph.file.layout") == 0) { + len -= strlen(p) + 1; + p += strlen(p) + 1; + continue; + } + sprintf(xattrk, "user.test_xattr_%c", i); ASSERT_STREQ(p, xattrk);