Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Elizabeth Chastain <mec@shout.net>
To: gdb-patches@sources.redhat.com, kevinb@redhat.com
Subject: Re: [patch] gdb.c++/local.exp: add pr numbers
Date: Fri, 12 Apr 2002 18:24:00 -0000	[thread overview]
Message-ID: <200204130124.g3D1ODV17848@duracef.shout.net> (raw)

Kevin Buettner asks:
> What happens as the bugs are fixed?  Do we then take the PR numbers
> out?

That brings up a good issue.

The test code that I have right now is resilient to this.  Viz:

  send_gdb "foo ..."
  gdb_expect {
    -re "bar\r\n$gdb_prompt $" {
      pass "foo"
    }
    -re "bletch\r\n$gdb_prompt $" {
      # setup_kfail "gnats:gdb/NNN"
      fail "foo (gnats:gdb/NNN)"
    }
    -re ".*$gdb_prompt $" {
      fail "foo"
    }
    timeout {
      fail "foo (timeout)"
    }

"bar" is a good response.  "bletch" is a particular known bad response.
So as long as gdb responds with "bletch", it will be a FAIL
(soon to be a KFAIL).

When gdb starts responding with "bar", a good response, the test will PASS.

There is no need to remove the case for "bletch" for a long time.
Eventually someone will do a cleanup pass and notice that the bug for
"bletch" got fixed 2 years ago.  It's never dangerous to remove the
"bletch" case because that will just give the ordinary ".*" FAIL again.

I was thinking about this today.  The real issue is where to represent
information about known failures.  The bug database holds one view of
this information, and now we are putting it into the test scripts as well,
via KFAIL.  That means significantly more activity in the test scripts.

Michael C


             reply	other threads:[~2002-04-13  1:24 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-12 18:24 Michael Elizabeth Chastain [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-04-22 22:19 Michael Elizabeth Chastain
2002-04-22 22:17 Michael Elizabeth Chastain
2002-04-21 20:29 Michael Elizabeth Chastain
2002-04-14  1:02 Michael Elizabeth Chastain
2002-04-13 23:41 Michael Elizabeth Chastain
2002-04-14  0:12 ` Daniel Berlin
2002-04-14  6:31   ` Andrew Cagney
2002-04-14  8:22   ` Tom Tromey
2002-04-20 18:45 ` Andrew Cagney
2002-04-13 15:06 Michael Elizabeth Chastain
2002-04-13 17:45 ` Daniel Berlin
2002-04-12 15:27 Michael Elizabeth Chastain
2002-04-12 17:08 ` Kevin Buettner
2002-04-12 17:20   ` Daniel Jacobowitz
2002-04-13 14:58 ` Andrew Cagney

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=200204130124.g3D1ODV17848@duracef.shout.net \
    --to=mec@shout.net \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kevinb@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