[LTP] [PATCH 2/5] readdir21: Enable .all_filesystems
Martin Doucha
mdoucha@suse.cz
Wed Sep 11 18:34:36 CEST 2024
Run the readdir() error test on all filesystems.
Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
testcases/kernel/syscalls/readdir/readdir21.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/testcases/kernel/syscalls/readdir/readdir21.c b/testcases/kernel/syscalls/readdir/readdir21.c
index 7308c8bcc..7b747dbd3 100644
--- a/testcases/kernel/syscalls/readdir/readdir21.c
+++ b/testcases/kernel/syscalls/readdir/readdir21.c
@@ -20,9 +20,10 @@
#include "lapi/syscalls.h"
#include "lapi/readdir.h"
-#define TEST_DIR "test_dir"
-#define TEST_DIR4 "test_dir4"
-#define TEST_FILE "test_file"
+#define MNTPOINT "mntpoint"
+#define TEST_DIR MNTPOINT "/test_dir"
+#define TEST_DIR4 MNTPOINT "/test_dir4"
+#define TEST_FILE MNTPOINT "/test_file"
#define DIR_MODE 0755
static unsigned int del_dir_fd, file_fd;
@@ -75,5 +76,8 @@ static struct tst_test test = {
.tcnt = ARRAY_SIZE(tcases),
.setup = setup,
.test = verify_readdir,
- .needs_tmpdir = 1,
+ .needs_root = 1,
+ .all_filesystems = 1,
+ .mount_device = 1,
+ .mntpoint = MNTPOINT
};
--
2.46.0
More information about the ltp
mailing list