[PATCH 1/3] tests: add strace-ff.test
Dmitry V. Levin
ldv at altlinux.org
Fri May 6 10:32:27 UTC 2016
On Thu, May 05, 2016 at 03:19:49PM +0800, Fei Jie wrote:
> * tests/strace-ff.test: New test.
> * tests/Makefile.am (MISC_TESTS): Add it.
> ---
> tests/Makefile.am | 1 +
> tests/strace-ff.test | 18 ++++++++++++++++++
> 2 files changed, 19 insertions(+)
> create mode 100755 tests/strace-ff.test
>
> diff --git a/tests/Makefile.am b/tests/Makefile.am
> index f13f897..41f03fb 100644
> --- a/tests/Makefile.am
> +++ b/tests/Makefile.am
> @@ -601,6 +601,7 @@ MISC_TESTS = \
> restart_syscall.test \
> strace-T.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..90bf249
> --- /dev/null
> +++ b/tests/strace-ff.test
> @@ -0,0 +1,18 @@
> +#!/bin/sh
> +
> +# Check -ff option.
> +
> +. "${srcdir=.}/init.sh"
> +
> +./sleep 1 &
> +PID=$!
> +run_strace -ff -p $PID
Attach can fail unless ./sleep is run via ./set_ptracer_any; try this
instead:
./set_ptracer_any ./sleep 1 > /dev/null &
pid=$!
run_strace -a14 -eexit_group -ff -p $pid
This way you can use match_diff.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160506/8c35ecfb/attachment.bin>
More information about the Strace-devel
mailing list