strace/tests/sigign.test
Dmitry V. Levin ff1bc06589 tests: check signal disposition transparency
Starting with commit v4.17-8-ge97a66f strace is expected
to forward the signal disposition to tracees unchanged.

* tests/check_sigign.c: New file.
* tests/list_sigaction_signum.c: Likewise.
* tests/set_sigign.c: Likewise.
* tests/sigign.test: New test.
* tests/.gitignore: Add check_sigign, list_sigaction_signum,
and set_sigign.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(MISC_TESTS): Add sigign.test.
2017-11-03 23:10:38 +00:00

23 lines
556 B
Bash
Executable File

#!/bin/sh
# Check signal disposition transparency.
# Starting with commit v4.17-8-ge97a66f strace is expected
# to forward the signal disposition to tracees unchanged.
. "${srcdir=.}/init.sh"
run_prog ../list_sigaction_signum > /dev/null
saved_STRACE="$STRACE"
for sig in $(../list_sigaction_signum); do
for ign in 0 1; do
set_cmd="../set_sigign $ign $sig"
check_cmd="../check_sigign $ign $sig"
run_prog $set_cmd $check_cmd
STRACE="$set_cmd $saved_STRACE"
for i in '' -I1 -I2 -I3 -I4; do
run_strace $i -enone $check_cmd
done
done
done