From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Andrew Burgess <aburgess@broadcom.com>
Cc: Tom Tromey <tromey@redhat.com>,
"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: PATCH: error reading variable: value has been optimized out
Date: Mon, 17 Sep 2012 16:57:00 -0000 [thread overview]
Message-ID: <20120917165636.GA25759@host2.jankratochvil.net> (raw)
In-Reply-To: <5053A419.1090009@broadcom.com>
On Fri, 14 Sep 2012 23:39:37 +0200, Andrew Burgess wrote:
> On 14/09/2012 8:02 PM, Tom Tromey wrote:
> >Andrew> + # If we ever fix gdb so this passes we should delete the
> >Andrew> + # unsupported case below.
> >Andrew> + xpass $test
> >
> >Andrew> + unsupported $test
> >
> >I think these tests should 'pass' if they generate the correct output,
> >and 'kfail' otherwise.
I agree with Tom here.
There are ongoing disputes how to mark testsuite results as it is more
a matter of opinion, so I do not want much to argue about anything.
Also I am not sure if I wrote it below so that it can be well understood.
> But if they kfail then they need a defect ID, it seems rather
> pointless to raise a defect for unsupported behaviour we have no
> intention to fix.
Not everything may be perfect but it is the current practice to do it that
way.
> Surely xpass is the right choice.
'xpass' is OK. But that 'pass' is not right, we know GDB could behave better
(*). 'kfail' is for the 'pass' state more appropriate as we know GDB has
a (theoretical) problem.
(*) It is not important here whether it is worth the effort which it is not.
XPASS
A pleasant kind of failure: a test was expected to fail, but
succeeded. This may indicate progress; inspect the test case to
determine whether you should amend it to stop expecting failure.
> If the test ever does pass I hope
> the unexpected pass result will draw attention to the test so the
> "unsupported" (or kfail) can be removed. If it was just a pass then
> there's a chance the test could be fixed then regress and we'd never
> notice as the unsupported (or kfail) would never have been removed.
'unsupported' should not apply in any of these cases as it is about the testing
environment. But all these testcases do not depend on anything in system.
UNSUPPORTED
A test depends on a conditionally available feature that does not
exist (in the configured testing environment). For example, you
can use this outcome to report on a test case that does not work
on a particular target because its operating system support does
not include a required subroutine.
Thanks,
Jan
next prev parent reply other threads:[~2012-09-17 16:57 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-24 12:11 Andrew Burgess
2012-08-26 18:22 ` Jan Kratochvil
2012-08-27 15:46 ` Tom Tromey
2012-08-31 9:59 ` Eli Zaretskii
2012-09-03 15:07 ` Jan Kratochvil
2012-08-31 10:33 ` Andrew Burgess
2012-09-01 8:17 ` Eli Zaretskii
2012-09-03 8:32 ` Andrew Burgess
2012-09-03 11:24 ` Jan Kratochvil
2012-09-03 15:38 ` Eli Zaretskii
2012-09-03 15:17 ` Jan Kratochvil
2012-09-04 16:58 ` Andrew Burgess
2012-09-05 18:54 ` Jan Kratochvil
2012-09-12 17:30 ` Tom Tromey
2012-09-13 12:34 ` Andrew Burgess
2012-09-14 19:02 ` Tom Tromey
2012-09-14 21:39 ` Andrew Burgess
2012-09-17 16:57 ` Jan Kratochvil [this message]
2012-09-19 14:29 ` Andrew Burgess
2012-09-20 13:28 ` Jan Kratochvil
2012-09-21 17:19 ` Andrew Burgess
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=20120917165636.GA25759@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=aburgess@broadcom.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@redhat.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