]> granicus.if.org Git - strace/commitdiff
tests: add strace-ff.test
authorFei Jie <feij.fnst@cn.fujitsu.com>
Mon, 9 May 2016 06:19:56 +0000 (14:19 +0800)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 9 May 2016 23:21:20 +0000 (23:21 +0000)
* tests/strace-ff.test: New test.
* tests/Makefile.am (MISC_TESTS): Add it.

tests/Makefile.am
tests/strace-ff.test [new file with mode: 0755]

index 7eae886f85fa63a850e627442e768c55b44b274f..6f4815b91305ca1e5d2b14efd74f3692f8005bf9 100644 (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 \
diff --git a/tests/strace-ff.test b/tests/strace-ff.test
new file mode 100755 (executable)
index 0000000..6078c72
--- /dev/null
@@ -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".*