From: Sam James <sam@gentoo.org>
To: Kris Van Hees via DTrace-devel <dtrace-devel@oss.oracle.com>
Cc: eugene.loh@oracle.com, Kris Van Hees <kris.van.hees@oracle.com>,
dtrace@lists.linux.dev
Subject: Re: [DTrace-devel] [PATCH v2 6/8] test: Check dtrace return status in USDT tst.forker.sh
Date: Tue, 20 Aug 2024 01:49:16 +0100 [thread overview]
Message-ID: <87plq4j9wz.fsf@gentoo.org> (raw)
In-Reply-To: <ZsPR9mTFKe2jAfqW@oracle.com> (Kris Van Hees via DTrace-devel's message of "Mon, 19 Aug 2024 19:15:02 -0400")
[-- Attachment #1: Type: text/plain, Size: 1418 bytes --]
Kris Van Hees via DTrace-devel <dtrace-devel@oss.oracle.com> writes:
> On Thu, Jun 27, 2024 at 01:25:16AM -0400, eugene.loh@oracle.com wrote:
>> From: Eugene Loh <eugene.loh@oracle.com>
>>
>> This test was spuriously passing. DTrace failed to run -- many error
>> messages in the log file indicated as much -- and yet the test passed.
>>
>> Check the dtrace return status.
>>
>> The test will pass once USDT supports wildcard provider names.
>>
>> Signed-off-by: Eugene Loh <eugene.loh@oracle.com>
>
> Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
This made me go looking for other issues and I sent a small series for
the obvious ones.
There are other issues around:
* dtrace .. | awk, exit $? wrt no lastpipe, and
* multiple checks but we only exit $? only at the end (this is
debatable)
* exiting 0 at the end when checking for intended failure (perhaps
should do exit 1 if any of them *don't* fai;, see previous point) in a
handful of tests
* tests like test/unittest/udp/tst.ipv6localudp.sh where, while we
normally rely on the implicit exit code being the last command run,
because we do e.g. kill after, we end up not checking it.
Some of this doesn't matter *that* much because of the actual test
output being checked in .r files, but failing faster is nicer for
debugging as well, and in some cases, there is no .r (like this one).
> [...]
thanks,
sam
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 377 bytes --]
prev parent reply other threads:[~2024-08-20 0:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-27 5:25 [PATCH v2 6/8] test: Check dtrace return status in USDT tst.forker.sh eugene.loh
2024-08-19 23:15 ` Kris Van Hees
2024-08-20 0:49 ` Sam James [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87plq4j9wz.fsf@gentoo.org \
--to=sam@gentoo.org \
--cc=dtrace-devel@oss.oracle.com \
--cc=dtrace@lists.linux.dev \
--cc=eugene.loh@oracle.com \
--cc=kris.van.hees@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox