All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] syscalls/ptrace05: skip internally used signals
@ 2018-10-24 22:01 Steve Muckle
  2018-11-02 13:23 ` Cyril Hrubis
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Muckle @ 2018-10-24 22:01 UTC (permalink / raw)
  To: ltp

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


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

* [LTP] [PATCH] syscalls/ptrace05: skip internally used signals
  2018-10-24 22:01 [LTP] [PATCH] syscalls/ptrace05: skip internally used signals Steve Muckle
@ 2018-11-02 13:23 ` Cyril Hrubis
  0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2018-11-02 13:23 UTC (permalink / raw)
  To: ltp

Hi!
> 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;

I'm a bit worried about using the libc internal __SIGRTMIN but I doubt
that we can get this information elsewhere.

Applied, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz

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

end of thread, other threads:[~2018-11-02 13:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-24 22:01 [LTP] [PATCH] syscalls/ptrace05: skip internally used signals Steve Muckle
2018-11-02 13:23 ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.