]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/libcephfs: fix rebasing issues
authorRishabh Dave <ridave@redhat.com>
Thu, 15 Dec 2022 14:20:11 +0000 (19:50 +0530)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 15 Dec 2022 15:05:00 +0000 (17:05 +0200)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/test/libcephfs/access.cc
src/test/libcephfs/test.cc

index dd4f33ab079366222b4030beb2a9186d7fa746ed..cebbb34eff73c878577b832ff817730608c09dbf 100644 (file)
@@ -29,6 +29,8 @@
 #include <vector>
 #include "json_spirit/json_spirit.h"
 
+#include "include/fs_types.h"
+
 #ifdef __linux__
 #include <limits.h>
 #include <sys/xattr.h>
index 3fb301ea72fae4efd408540f4ec4a24c5675efba..5028f1ac44b870d307ba1615684380d5f546791b 100644 (file)
@@ -2457,7 +2457,8 @@ TEST(LibCephFS, SnapXattrs) {
   ASSERT_LT(alen, xbuflen);
   gxattrv[alen] = '\0';
   char *s = strchr(gxattrv, '.');
-  ASSERT_NE(0, s);
+  char *q = NULL;
+  ASSERT_NE(q, s);
   ASSERT_LT(s, gxattrv + alen);
   ASSERT_EQ('.', *s);
   *s = '\0';
@@ -2485,7 +2486,7 @@ TEST(LibCephFS, SnapXattrs) {
   ASSERT_LT(alen, xbuflen);
   gxattrv2[alen] = '\0';
   s = strchr(gxattrv2, '.');
-  ASSERT_NE(0, s);
+  ASSERT_NE(q, s);
   ASSERT_LT(s, gxattrv2 + alen);
   ASSERT_EQ('.', *s);
   *s = '\0';