tests: add strace-ff.test

* tests/strace-ff.test: New test.
* tests/Makefile.am (MISC_TESTS): Add it.
This commit is contained in:
Fei Jie 2016-05-09 14:19:56 +08:00 committed by Dmitry V. Levin
parent a30d02e902
commit c259f4fd5d
2 changed files with 15 additions and 0 deletions

View File

@ -608,6 +608,7 @@ MISC_TESTS = \
strace-T.test \
strace-V.test \
strace-f.test \
strace-ff.test \
strace-r.test \
strace-t.test \
strace-tt.test \

14
tests/strace-ff.test Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
# Check -ff option.
. "${srcdir=.}/init.sh"
./set_ptracer_any ./sleep 1 > /dev/null &
PID=$!
run_strace -a14 -eexit_group -ff -p $PID
printf "exit_group(0) = ?\n+++ exited with 0 +++\n" > "$LOG"
match_diff "$LOG" "$LOG.$PID"
rm -f "$LOG".*