[PATCH v4 4/4] tests: check status qualifier
Paul Chaignon
paul.chaignon at gmail.com
Wed Jun 26 12:38:10 UTC 2019
On Tue, Jun 18, 2019 at 03:06:07AM +0300, Dmitry V. Levin wrote:
> On Sat, Jun 15, 2019 at 07:33:44PM +0200, Paul Chaignon wrote:
> > This patch adds 5 test cases for -e status with unfinished, failed, none,
> > successful, 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.
> >
> > Signed-off-by: Paul Chaignon <paul.chaignon at gmail.com>
> > Co-Authored-by: Burkhard Kohl <burkhard.kohl at intel.com>
[...]
> BTW, do you plan to add a test for status=detached?
>
> It could be something simple, e.g.
> ../strace -e trace=nanosleep -e status=detached ./sleep 2 & ./sleep 1 && kill $!
Thanks for the test.
I had added it as a new tests, but it turns out it wasn't actually working (I
didn't see it at first because of a missing newline in the .expected file; the
file was therefore considered empty). I had to add -I2 to the strace command
line because run_strace() adds a -o option and fatal signals are therefore
blocked. It looks okay now.
Paul
More information about the Strace-devel
mailing list