diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2022-08-03 15:40:03 +0200 |
---|---|---|
committer | Eugene Syromyatnikov <evgsyr@gmail.com> | 2022-08-11 14:34:17 +0200 |
commit | 37350a194c505bc32a9738df0191b4c5f5d9e10b (patch) | |
tree | f7f8abab7ffad7e47364f5049224865273cc9d43 | |
parent | 9fd4989f7d14f4213627d521626fbecdd52838eb (diff) | |
download | strace-37350a194c505bc32a9738df0191b4c5f5d9e10b.tar.gz |
tests/ptrace: add comments for specific siginfo decoding checks
* tests/ptrace.c: Add comments with the signal names being tested.
-rw-r--r-- | tests/ptrace.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ptrace.c b/tests/ptrace.c index 9cbce64c5..383050d4f 100644 --- a/tests/ptrace.c +++ b/tests/ptrace.c @@ -2032,6 +2032,7 @@ main(void) errstr); } + /* SIGPROF */ memset(sip, -1, sizeof(*sip)); sip->si_signo = SIGPROF; sip->si_code = 0xbadc0ded; @@ -2137,6 +2138,7 @@ main(void) sip->si_addr, segv_codes[i].aux ?: "", errstr); } + /* SIGSYS */ #ifdef HAVE_SIGINFO_T_SI_SYSCALL memset(sip, -1, sizeof(*sip)); sip->si_signo = SIGSYS; @@ -2226,6 +2228,7 @@ main(void) # endif #endif + /* SI_TIMER */ #if defined HAVE_SIGINFO_T_SI_TIMERID && defined HAVE_SIGINFO_T_SI_OVERRUN memset(sip, -1, sizeof(*sip)); sip->si_signo = SIGHUP; |