[LTP] [PATCH] syscalls/ptrace05: skip internally used signals

Steve Muckle smuckle@google.com
Thu Oct 25 00:01:01 CEST 2018


Some signals may be internally used by the C library. Do not attempt to
test these.

Signed-off-by: Steve Muckle <smuckle@google.com>
---
 testcases/kernel/syscalls/ptrace/ptrace05.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/testcases/kernel/syscalls/ptrace/ptrace05.c b/testcases/kernel/syscalls/ptrace/ptrace05.c
index 22261f3df..420330029 100644
--- a/testcases/kernel/syscalls/ptrace/ptrace05.c
+++ b/testcases/kernel/syscalls/ptrace/ptrace05.c
@@ -71,6 +71,9 @@ int main(int argc, char **argv)
 
 	for (signum = start_signum; signum <= end_signum; signum++) {
 
+		if (signum >= __SIGRTMIN && signum < SIGRTMIN)
+			continue;
+
 		switch (child = fork()) {
 		case -1:
 			tst_brkm(TBROK | TERRNO, NULL, "fork() failed");
-- 
2.19.1.568.g152ad8e336-goog



More information about the ltp mailing list