summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-01-30 11:32:23 -0800
committerSage Weil <sage@inktank.com>2013-02-09 20:41:24 -0800
commit2c6afa058e8b1738c1400392320482945834de86 (patch)
tree95534fcd209be864c54b4c27dac1abee735d4586
parentf11beb954976f66bfae75e847937f84958ebeaf3 (diff)
downloadceph-2c6afa058e8b1738c1400392320482945834de86.tar.gz
test_libcephfs: fix xattr test
Ignore the ceph.*.layout xattrs. Signed-off-by: Sage Weil <sage@inktank.com> (cherry picked from commit b0d4dd21c7be86eb47728a4702a3c67ca44424ac)
-rw-r--r--src/test/libcephfs/test.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/libcephfs/test.cc b/src/test/libcephfs/test.cc
index 67bf78c82af..b3cdf507294 100644
--- a/src/test/libcephfs/test.cc
+++ b/src/test/libcephfs/test.cc
@@ -402,6 +402,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);