[LTP] [PATCH v3 3/3] syscalls/tgkill03: add new test
Cyril Hrubis
chrubis@suse.cz
Tue Mar 19 14:56:47 CET 2019
Hi!
I've added one more ESRCH case here:
diff --git a/testcases/kernel/syscalls/tgkill/tgkill03.c b/testcases/kernel/syscalls/tgkill/tgkill03.c
index b78e9d95a..f5bbdc5a8 100644
--- a/testcases/kernel/syscalls/tgkill/tgkill03.c
+++ b/testcases/kernel/syscalls/tgkill/tgkill03.c
@@ -76,7 +76,8 @@ static const struct testcase {
{ "Invalid tgid", &invalid_pid, &parent_tid, SIGUSR1, EINVAL },
{ "Invalid tid", &parent_tgid, &invalid_pid, SIGUSR1, EINVAL },
{ "Invalid signal", &parent_tgid, &parent_tid, -1, EINVAL },
- { "Defunct thread ID", &parent_tgid, &defunct_tid, SIGUSR1, ESRCH },
+ { "Defunct tid", &parent_tgid, &defunct_tid, SIGUSR1, ESRCH },
+ { "Defunct tgid", &defunct_tid, &child_tid, SIGUSR1, ESRCH },
{ "Valid tgkill call", &parent_tgid, &child_tid, SIGUSR1, 0 },
};
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list