]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Use do_ceph_mount in ManyNestedDirsCaseInsensitive
authorChristopher Hoffman <choffman@redhat.com>
Tue, 17 Feb 2026 18:50:01 +0000 (18:50 +0000)
committerChristopher Hoffman <choffman@redhat.com>
Tue, 17 Feb 2026 18:50:01 +0000 (18:50 +0000)
Since do_ceph_mount is used to overload the mount function for
fscrypt and regular tests, ensure overloaded function is used.

This wasn't the case before, and testing CaseInsensitive was
not done properly on fscrypt.

Fixes: https://tracker.ceph.com/issues/74934
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
src/test/libcephfs/test.cc

index 8d06dba3b0db81056249a48942046ff58e77d7f3..46b1c3a90388021455021e247924cec9b57dd423 100644 (file)
@@ -582,7 +582,7 @@ TEST(LibCephFS, ManyNestedDirsCaseInsensitive) {
   ASSERT_EQ(ceph_create(&cmount, NULL), 0);
   ASSERT_EQ(ceph_conf_read_file(cmount, NULL), 0);
   ASSERT_EQ(0, ceph_conf_parse_env(cmount, NULL));
-  ASSERT_EQ(ceph_mount(cmount, NULL), 0);
+  ASSERT_EQ(do_ceph_mount(cmount, NULL), 0);
 
   static const char many_path[] = "/ManyNestedDirsCaseInsensitive/A/a/a/a/a/b/B/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/a/Aa";
   const filepath mfp = filepath(many_path);