strace/tests/termsig.test
Dmitry V. Levin ae1b07bc2a tests: check termination signal forwarding
* tests/run_expect_termsig.c: New file.
* tests/unblock_reset_raise.c: Likewise.
* tests/termsig.test: New test.
* tests/.gitignore: Add run_expect_termsig and unblock_reset_raise.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(MISC_TESTS): Add termsig.test.
2017-05-27 17:59:44 +00:00

16 lines
344 B
Bash
Executable File

#!/bin/sh
# Check termination signal forwarding.
. "${srcdir=.}/init.sh"
run_expect_termsig="../run_expect_termsig 15"
unblock_reset_raise="../unblock_reset_raise 15"
run_prog $run_expect_termsig $unblock_reset_raise
STRACE="$run_expect_termsig $STRACE"
for i in 1 2 3 4; do
run_strace -I$i -enone -esignal=none $unblock_reset_raise
done