From: Andrew Cagney <cagney@gnu.org>
To: Hans-Peter Nilsson <hans-peter.nilsson@axis.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA:] sim-defs.exp: support xfail
Date: Wed, 10 Nov 2004 16:40:00 -0000 [thread overview]
Message-ID: <41924417.8060202@gnu.org> (raw)
In-Reply-To: <200411101455.iAAEtbqh014407@ignucius.se.axis.com>
Hans-Peter Nilsson wrote:
>>Date: Wed, 10 Nov 2004 09:01:56 -0500
>>From: Andrew Cagney <cagney@gnu.org>
>
>
>>Hans-Peter Nilsson wrote:
>>
>>>Directly taken from the same option in the ld run_dump_test.
>>>Ok to commit?
>>>2004-11-10 Hans-Peter Nilsson <hp@axis.com>
>>>
>>> * lib/sim-defs.exp (run_sim_test): Support "xfail" option.
>>
>>What do you mean by "xfail"? (Hint, check a current dejagnu document
>>where it describes kfail :-)
>
>
> I know about kfail, but I'm agnostic. I just mean what happens
> for the ld run_dump_test "xfail" option; a simple setup_xfail.
> The purpose is to be able to keep failing tests around but not
> get the total results marked as partially failing. Reasons for
> the failure would be unspecified, matching both xfail and kfail
> usage.
>
> To me, it doesn't really matter whether it's kfail or xfail
> (vivid descriptions of kfail vs. xfail to /dev/null). In the
> sim testsuite I believe it'll be used very sparingly, perhaps
> not even for things that are checked in. But it'd be Nice to
> Have.
>
> Is the change acceptable by naming the option "kfail" and
> calling "setup_kfail"? Or do you want both?
>
> brgds, H-P
> PS. BTW, the dejagnu documentation on
> <URL:http://www.gnu.org/software/dejagnu/manual/> is not
> current; KFAIL isn't mentioned there.
Ok, really weird, the date on that page says 2004 but the manual is
missing (from dejagnu 1.4.4):
@item KFAIL
A test is known to fail in some environment(s) due to a known bug
in the tool being tested (identified by a bug id string). This
exists so that, after a bug is identified and properly registered
in a bug tracking database (Gnats, for instance), the count of
failures can be kept as zero. Having zero as a baseline in all
platforms allow the tool developers to immediately detect regressions
caused by changes (which may affect some platforms and not others).
The connection with a bug tracking database allows for automatic
generation of the BUGS section of man pages or Release Notes, as
well as a "Bugs Fixed this Release" section (by comparing to a
previous release set of known failures).
The procedure @code{setup_kfail} is used to indicate a failure is
known to exist.
@cindex KFAIL, avoiding for POSIX
As with @code{XFAIL}, @sc{posix} tests must return @code{FAIL} rather
than @code{KFAIL} even if a failure was due to a known bug.
I can't think of a single reason for a simulator test that failing not
being for a known bug.
However, for consistency with dejagnu, we might as well support both.
Feel free to add the necessary glue to cover all of xfail and kfail and
kpass.
Andrew
next prev parent reply other threads:[~2004-11-10 16:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-10 9:52 Hans-Peter Nilsson
2004-11-10 14:03 ` Andrew Cagney
2004-11-10 14:55 ` Hans-Peter Nilsson
2004-11-10 16:40 ` Andrew Cagney [this message]
2004-11-16 16:22 ` Hans-Peter Nilsson
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=41924417.8060202@gnu.org \
--to=cagney@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=hans-peter.nilsson@axis.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