Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* XFAIL vs. KFAIL
@ 2008-04-05 16:45 Vladimir Prus
  2008-04-05 17:13 ` Joel Brobecker
  0 siblings, 1 reply; 5+ messages in thread
From: Vladimir Prus @ 2008-04-05 16:45 UTC (permalink / raw)
  To: gdb


Hi,
can somebody explain the difference between XFAILing and
KFAILing a test in the GDB testsuite? I've looked at DejaGNU manual,
I haven't found the answer.

Thanks,
Volodya


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: XFAIL vs. KFAIL
  2008-04-05 16:45 XFAIL vs. KFAIL Vladimir Prus
@ 2008-04-05 17:13 ` Joel Brobecker
  2008-04-05 18:52   ` Vladimir Prus
  0 siblings, 1 reply; 5+ messages in thread
From: Joel Brobecker @ 2008-04-05 17:13 UTC (permalink / raw)
  To: Vladimir Prus; +Cc: gdb

> can somebody explain the difference between XFAILing and KFAILing a
> test in the GDB testsuite? I've looked at DejaGNU manual, I haven't
> found the answer.

KFAIL is when we know of a failure caused by a bug in GDB.

XFAIL is when a problem outside of GDB's control is causing the test
to fail. For instance, a kernel issue, or some wrong debugging info
generated by the compiler, etc.

-- 
Joel


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: XFAIL vs. KFAIL
  2008-04-05 17:13 ` Joel Brobecker
@ 2008-04-05 18:52   ` Vladimir Prus
  2008-04-06  0:58     ` Daniel Jacobowitz
  2008-04-07 19:13     ` Michael Snyder
  0 siblings, 2 replies; 5+ messages in thread
From: Vladimir Prus @ 2008-04-05 18:52 UTC (permalink / raw)
  To: gdb

Joel Brobecker wrote:

>> can somebody explain the difference between XFAILing and KFAILing a
>> test in the GDB testsuite? I've looked at DejaGNU manual, I haven't
>> found the answer.
> 
> KFAIL is when we know of a failure caused by a bug in GDB.
> 
> XFAIL is when a problem outside of GDB's control is causing the test
> to fail. For instance, a kernel issue, or some wrong debugging info
> generated by the compiler, etc.

Hmm, it appears that at least MI testsuite routinely uses XFAIL for what is
a GDB issue/limitation.

Is the distinction really useful? Both seem to be a mechanism to "hide"
failures that are known to be immediately fixeable, and exact description
of the problem belongs to a comment, anyway.

- Volodya


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: XFAIL vs. KFAIL
  2008-04-05 18:52   ` Vladimir Prus
@ 2008-04-06  0:58     ` Daniel Jacobowitz
  2008-04-07 19:13     ` Michael Snyder
  1 sibling, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2008-04-06  0:58 UTC (permalink / raw)
  To: Vladimir Prus; +Cc: gdb

On Sat, Apr 05, 2008 at 08:55:55PM +0400, Vladimir Prus wrote:
> Hmm, it appears that at least MI testsuite routinely uses XFAIL for what is
> a GDB issue/limitation.

KFAIL is relatively new.  What I mean by that is it's about five years
old, but the MI testsuite is older.

Most of the XFAILs in the testsuite are bogus at this point.

> Is the distinction really useful? Both seem to be a mechanism to "hide"
> failures that are known to be immediately fixeable, and exact description
> of the problem belongs to a comment, anyway.

No, that's exactly what XFAIL isn't for.  We use XFAIL for problems
that we can't fix, like known bugs in versions of GCC or Linux or HP-UX.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: XFAIL vs. KFAIL
  2008-04-05 18:52   ` Vladimir Prus
  2008-04-06  0:58     ` Daniel Jacobowitz
@ 2008-04-07 19:13     ` Michael Snyder
  1 sibling, 0 replies; 5+ messages in thread
From: Michael Snyder @ 2008-04-07 19:13 UTC (permalink / raw)
  To: Vladimir Prus; +Cc: gdb

On Sat, 2008-04-05 at 20:55 +0400, Vladimir Prus wrote:
> Joel Brobecker wrote:
> 
> >> can somebody explain the difference between XFAILing and KFAILing a
> >> test in the GDB testsuite? I've looked at DejaGNU manual, I haven't
> >> found the answer.
> > 
> > KFAIL is when we know of a failure caused by a bug in GDB.
> > 
> > XFAIL is when a problem outside of GDB's control is causing the test
> > to fail. For instance, a kernel issue, or some wrong debugging info
> > generated by the compiler, etc.
> 
> Hmm, it appears that at least MI testsuite routinely uses XFAIL for what is
> a GDB issue/limitation.

Hey, you're welcome to judiciously update them!   ;-)


> Is the distinction really useful? Both seem to be a mechanism to "hide"
> failures that are known to be immediately fixeable, and exact description
> of the problem belongs to a comment, anyway.

We added KFAIL because the distinction seemed to be useful.
It tells us that this is something we ought to fix some day, 
as opposed to something we have little or no control over.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-04-07 19:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-05 16:45 XFAIL vs. KFAIL Vladimir Prus
2008-04-05 17:13 ` Joel Brobecker
2008-04-05 18:52   ` Vladimir Prus
2008-04-06  0:58     ` Daniel Jacobowitz
2008-04-07 19:13     ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox