]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test_libcephfs: fix xattr test
authorSage Weil <sage@inktank.com>
Wed, 30 Jan 2013 19:32:23 +0000 (11:32 -0800)
committerSage Weil <sage@inktank.com>
Wed, 30 Jan 2013 19:32:23 +0000 (11:32 -0800)
Ignore the ceph.*.layout xattrs.

Signed-off-by: Sage Weil <sage@inktank.com>
src/test/libcephfs/test.cc

index 62482a08d786c5572da2249768bd7b428a86453a..eaf38dba509a011e6acc2272465e9cdec9803a53 100644 (file)
@@ -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);