Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: David Carlton <carlton@math.stanford.edu>
To: Michael Elizabeth Chastain <mec@shout.net>
Cc: drow@mvista.com, gdb-patches@sources.redhat.com
Subject: Re: [patch] delete namespace __gnu_test from C++ testsuite
Date: Wed, 18 Dec 2002 11:46:00 -0000	[thread overview]
Message-ID: <ro1vg1rkuf1.fsf@jackfruit.Stanford.EDU> (raw)
In-Reply-To: <200212181900.gBIJ0cQ14489@duracef.shout.net>

On Wed, 18 Dec 2002 13:00:38 -0600, Michael Elizabeth Chastain <mec@shout.net> said:

> I would change this code:
>   # simple object, enum
>   gdb_test "print test1.value" "\\$\[0-9\]* = egyptian" "simple object, enum"

> To:

>   send_gdb "test1.value\n"
>   gdb_expect {
>     -re "\\$\[0-9\]+ = __gnu_test::egyptian\r\n$gdb_prompt $" {
>       pass "simple object, enum
>     }
>     -re "\\$\[0-9\]+ = egyptain\r\n$gdb_prompt $" {
>       fail "simple object, enum (gdb/895)"
>     }
>     -re ".*$gdb_prompt $" {
>       fail "simple object, enum"
>     }
>     timeout {
>       fail "simple object, enum (timeout)"
>     }

I'll add something like this to the testsuite soon.  (Hopefully over
the next few days; definitely before Winter quarter starts.)

> In the "= egyptian" case, I would call kfail or setup_kfail as soon
> as we start using KFAIL's.  KFAIL is moving way up my priority list.

Yup.  I think I'll KFAIL something today; I'm just looking for the
right bug to start with.  One possibility is gdb.c++/annota2.exp's
annotate-quit, corresponding to PR 544.

> If the "= egyptian" case is due to bad output from gcc, then I would
> add a big comment and then call setup_xfail (or call xfail outright).
> I would also want to have a gcc bug # in hand and refer to it in
> the test script source.

We can't get it right without GCC's help.  But currently we wouldn't
get it right even if GCC were helping, so I think that KFAIL is
appropriate for now.

Getting this completely correct is going to be a bit of a delicate
issue, actually: eventually, we'll need to be able to conditially
XFAIL tests based on the compiler version number, if we really want to
be scrupulously correct in this regard.

David Carlton
carlton@math.stanford.edu


  reply	other threads:[~2002-12-18 19:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-18 11:16 Michael Elizabeth Chastain
2002-12-18 11:46 ` David Carlton [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-12-17 15:34 David Carlton
2002-12-17 16:08 ` Daniel Jacobowitz
2002-12-18  3:11   ` David Carlton
2002-12-18 10:19     ` David Carlton

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=ro1vg1rkuf1.fsf@jackfruit.Stanford.EDU \
    --to=carlton@math.stanford.edu \
    --cc=drow@mvista.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=mec@shout.net \
    /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