[LTP] [PATCH 2/2] [COMMITTED] syscalls/p{read, write}v03: Skip test on tmpfs

Cyril Hrubis chrubis@suse.cz
Tue Apr 13 19:29:16 CEST 2021


Since open with O_DIRECT returns EINVAL on tmpfs.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 testcases/kernel/syscalls/preadv/preadv03.c   | 4 ++++
 testcases/kernel/syscalls/pwritev/pwritev03.c | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/testcases/kernel/syscalls/preadv/preadv03.c b/testcases/kernel/syscalls/preadv/preadv03.c
index c456d4105..59c3b84f7 100644
--- a/testcases/kernel/syscalls/preadv/preadv03.c
+++ b/testcases/kernel/syscalls/preadv/preadv03.c
@@ -135,4 +135,8 @@ static struct tst_test test = {
 	.mntpoint = MNTPOINT,
 	.mount_device = 1,
 	.all_filesystems = 1,
+	.skip_filesystems = (const char *[]) {
+		"tmpfs",
+		NULL
+	}
 };
diff --git a/testcases/kernel/syscalls/pwritev/pwritev03.c b/testcases/kernel/syscalls/pwritev/pwritev03.c
index f32c368c0..91a5e3c54 100644
--- a/testcases/kernel/syscalls/pwritev/pwritev03.c
+++ b/testcases/kernel/syscalls/pwritev/pwritev03.c
@@ -134,4 +134,8 @@ static struct tst_test test = {
 	.mntpoint = MNTPOINT,
 	.mount_device = 1,
 	.all_filesystems = 1,
+	.skip_filesystems = (const char *[]){
+		"tmpfs",
+		NULL
+	}
 };
-- 
2.26.3



More information about the ltp mailing list