strace/tests/fork-f.test
Dmitry V. Levin 78db0f2dcf tests: add fork-f.test and vfork-f.test
Check how strace -f follows fork and vfork syscalls.

* tests/fork-f.c: New file.
* tests/fork-f.test: New test.
* tests/vfork-f.c: New file.
* tests/vfork-f.test: New test.
* tests/Makefile.am (check_PROGRAMS): Add fork-f and vfork-f.
(TESTS): Add fork-f.test and vfork-f.test.
* tests/.gitignore: Add fork-f and vfork-f.
2015-12-30 23:08:32 +00:00

14 lines
226 B
Bash
Executable File

#!/bin/sh
# Check how strace -f follows fork syscall.
. "${srcdir=.}/init.sh"
run_prog > /dev/null
OUT="$LOG.out"
run_strace -a32 -qq -f -epwrite64 -esignal=none $args > "$OUT"
match_diff "$LOG" "$OUT"
rm -f "$OUT"
exit 0