Skip to content

Commit f152732

Browse files
committed
test/libcephfs: add missing cleanup
The directory was left open at continue. Thanks to Chris Hoffman for spotting that. Signed-off-by: Patrick Donnelly <[email protected]>
1 parent 912e1a8 commit f152732

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/libcephfs/test.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ TEST(LibCephFS, ManyNestedDirs) {
537537
ASSERT_STREQ(dent->d_name, "..");
538538
if (component == "ManyNestedDirs"sv) {
539539
ASSERT_EQ(0, ceph_chdir(cmount, component.c_str()));
540+
ASSERT_EQ(ceph_closedir(cmount, dirp), 0);
540541
continue;
541542
}
542543
dent = ceph_readdir(cmount, dirp);
@@ -586,6 +587,7 @@ TEST(LibCephFS, ManyNestedDirsCaseInsensitive) {
586587
ASSERT_STREQ(dent->d_name, "..");
587588
if (component == "ManyNestedDirsCaseInsensitive"sv) {
588589
ASSERT_EQ(0, ceph_chdir(cmount, component.c_str()));
590+
ASSERT_EQ(ceph_closedir(cmount, dirp), 0);
589591
continue;
590592
}
591593
dent = ceph_readdir(cmount, dirp);

0 commit comments

Comments
 (0)