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

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)"
    }

If the FAIL happens with a PR number, then anybody who is reviewing the
results can look at the PR and notice that it says "this was broken in
5.3 as well".  (Also when I do this kind of review, I just look in the
gdb.log files and notice that the gdb output was the same, just the
result changed).

If the FAIL happens without a PR number, that is a genuinely new bug
in gdb (or gcc), and deserves to be treated the same as any other
regression.

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.

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.

Michael C


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

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-18 11:16 Michael Elizabeth Chastain [this message]
2002-12-18 11:46 ` David Carlton
  -- 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=200212181900.gBIJ0cQ14489@duracef.shout.net \
    --to=mec@shout.net \
    --cc=carlton@math.stanford.edu \
    --cc=drow@mvista.com \
    --cc=gdb-patches@sources.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