[PATCH v5 4/4] tests: check status qualifier

Dmitry V. Levin ldv at altlinux.org
Tue Jul 2 08:10:35 UTC 2019


On Fri, Jun 28, 2019 at 11:34:40AM +0200, Paul Chaignon wrote:
> This patch adds 6 test cases for -e status with unfinished, failed, none,
> successful, detached, and the whole set.  The test cases for failed,
> successful, and the whole set use chdir(2).  The test cases for unfinished
> and none rely on a child thread execve'ing the lead thread.  The test case
> for detached interrupts strace while attached to a sleeping process.
[...]
> diff --git a/tests/gen_tests.in b/tests/gen_tests.in
> index 487b9608..eaea6908 100644
> --- a/tests/gen_tests.in
> +++ b/tests/gen_tests.in
> @@ -465,6 +465,11 @@ stat	-a32 -v -P stat.sample -P /dev/full
>  stat64	-a32 -v -P stat.sample -P /dev/full
>  statfs	-a17
>  statfs64	-a23
> +status-all	-a10 -e trace=chdir -e status=detached,failed,successful,unavailable,unfinished
> +status-failed	-a10 -e trace=chdir -Z
> +status-none	-f -e trace=execve,exit_group,nanosleep -e status=none
> +status-successful	-a10 -e trace=chdir -z
> +status-unfinished	-a14 -f -e trace=execve,exit_group,nanosleep -e status=unfinished

I don't think -e trace=execve,exit_group,nanosleep is needed
for status-none and status-unfinished tests, -e trace=all should work
as well.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20190702/58a1b28e/attachment.bin>


More information about the Strace-devel mailing list