]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_libcephfs: fix xattr test
authorSage Weil <sage@inktank.com>
Mon, 13 May 2013 17:12:44 +0000 (10:12 -0700)
committerSage Weil <sage@inktank.com>
Mon, 13 May 2013 17:16:21 +0000 (10:16 -0700)
This broke in 0c70e44630734760fd36e0c770a33fb0e74b42a4.

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

index 7ecf536fb99a52d273f5978f886367e184032519..cddc66d3b616fd4a10e51f71f62d1804faec73f8 100644 (file)
@@ -436,7 +436,7 @@ TEST(LibCephFS, Xattrs) {
 
     char gxattrv[128];
     int alen = ceph_getxattr(cmount, test_xattr_file, p, (void *) gxattrv, 128);
-    ASSERT_LT(alen, 0);
+    ASSERT_GT(alen, 0);
     sprintf(xattrv, "testxattr%c", i);
     ASSERT_TRUE(!strncmp(xattrv, gxattrv, alen));