From: Patrick Donnelly Date: Fri, 14 Mar 2025 15:52:31 +0000 (-0400) Subject: test/libcephfs: add missing cleanup X-Git-Tag: v20.3.0~270^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f1527325cb43531677b3b095c92feb4bf4e9904b;p=ceph.git test/libcephfs: add missing cleanup The directory was left open at continue. Thanks to Chris Hoffman for spotting that. Signed-off-by: Patrick Donnelly --- diff --git a/src/test/libcephfs/test.cc b/src/test/libcephfs/test.cc index 87dd9827c97a..9d425132928c 100644 --- a/src/test/libcephfs/test.cc +++ b/src/test/libcephfs/test.cc @@ -537,6 +537,7 @@ TEST(LibCephFS, ManyNestedDirs) { ASSERT_STREQ(dent->d_name, ".."); if (component == "ManyNestedDirs"sv) { ASSERT_EQ(0, ceph_chdir(cmount, component.c_str())); + ASSERT_EQ(ceph_closedir(cmount, dirp), 0); continue; } dent = ceph_readdir(cmount, dirp); @@ -586,6 +587,7 @@ TEST(LibCephFS, ManyNestedDirsCaseInsensitive) { ASSERT_STREQ(dent->d_name, ".."); if (component == "ManyNestedDirsCaseInsensitive"sv) { ASSERT_EQ(0, ceph_chdir(cmount, component.c_str())); + ASSERT_EQ(ceph_closedir(cmount, dirp), 0); continue; } dent = ceph_readdir(cmount, dirp);