[PATCH v2 2/2] tests: add strace-ff.test

Fei Jie feij.fnst at cn.fujitsu.com
Mon May 9 06:19:56 UTC 2016


* tests/strace-ff.test: New test.
* tests/Makefile.am (MISC_TESTS): Add it.
---
 tests/Makefile.am    |  1 +
 tests/strace-ff.test | 14 ++++++++++++++
 2 files changed, 15 insertions(+)
 create mode 100755 tests/strace-ff.test

diff --git a/tests/Makefile.am b/tests/Makefile.am
index aea3fa2..00b2e82 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -606,6 +606,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
index 0000000..6078c72
--- /dev/null
+++ b/tests/strace-ff.test
@@ -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".*
-- 
1.8.3.1







More information about the Strace-devel mailing list