public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] syscalls/finit_module02: Add ETXTBSY error for read-write fd
@ 2021-11-17  8:24 Yang Xu
  2021-11-18 10:25 ` Richard Palethorpe
  0 siblings, 1 reply; 3+ messages in thread
From: Yang Xu @ 2021-11-17  8:24 UTC (permalink / raw)
  To: ltp

Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
 testcases/kernel/syscalls/finit_module/finit_module02.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/testcases/kernel/syscalls/finit_module/finit_module02.c b/testcases/kernel/syscalls/finit_module/finit_module02.c
index 47b5edbfb..b3437b5d0 100644
--- a/testcases/kernel/syscalls/finit_module/finit_module02.c
+++ b/testcases/kernel/syscalls/finit_module/finit_module02.c
@@ -72,6 +72,8 @@ static struct tcase tcases[] = {
 		NULL},
 	{"file-not-readable", &fd, "", O_WRONLY | O_CLOEXEC, 0, 0, EBADF, 0,
 		NULL},
+	{"file-readwrite", &fd, "", O_RDWR | O_CLOEXEC, 0, 0, ETXTBSY, 0,
+		NULL},
 	{"directory", &fd_dir, "", O_RDONLY | O_CLOEXEC, 0, 0, 0, 0, dir_setup},
 };
 
@@ -134,6 +136,7 @@ static void run(unsigned int n)
 static struct tst_test test = {
 	.tags = (const struct tst_tag[]) {
 		{"linux-git", "032146cda855"},
+		{"linux-git", "39d637af5aa7"},
 		{}
 	},
 	.test = run,
-- 
2.23.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-19  2:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-17  8:24 [LTP] [PATCH] syscalls/finit_module02: Add ETXTBSY error for read-write fd Yang Xu
2021-11-18 10:25 ` Richard Palethorpe
2021-11-19  2:53   ` xuyang2018.jy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox