diff mbox series

[2/5] readdir21: Enable .all_filesystems

Message ID 20240911163443.95398-3-mdoucha@suse.cz
State Accepted
Headers show
Series Enable .all_filesystems in readdir() and getdents() tests | expand

Commit Message

Martin Doucha Sept. 11, 2024, 4:34 p.m. UTC
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 mbox series

Patch

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
 };