Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: David Carlton <carlton@math.stanford.edu>
To: gdb-patches@sources.redhat.com
Cc: Michael Elizabeth Chastain <mec@shout.net>
Subject: [patch/rfc] KFAIL gdb.c++/annota2.exp watch triggered on a.x
Date: Fri, 03 Jan 2003 21:36:00 -0000	[thread overview]
Message-ID: <ro1ptrdlxvk.fsf@jackfruit.Stanford.EDU> (raw)

Here's a patch to KFAIL the test "watch triggered on a.x" in
gdb.c++/annota2.exp, corresponding to PR breakpoints/38.  The test
fails consistently on all the configurations that Michael tests.

This is an obvious candidate for KFAILing.  My only question is when
it should currently be expected to pass.  The PR indicates that it
might pass on some platforms; on the other hand, it fails reliably
on i686-pc-linux-gnu.  So what I did was change the two existing
instances of

  { pass "watch triggered on a.x" }

to

  { setup_kfail "gdb/38" "i686*-*-*"
    pass "watch triggered on a.x" }

but I made the new KFAIL case unconditional.  That seemed to be the
safest thing: that way, any FAIL or KPASS message is interesting.

I'm also a little worried that there are two pass regexps listed
whereas I'm only listing one fail regexp; it seems plausible to me
that I should add a second fail regexp.  But I don't want to do that
without seeing such a pattern in the wild.

I'll commit this on Wednesday unless somebody disagrees with how I'm
handling when to {K,}{FAIL,PASS} or unless somebody turns up more
KFAIL regexps.

David Carlton
carlton@math.stanford.edu

2003-01-03  David Carlton  <carlton@math.stanford.edu>

	* gdb.c++/annota2.exp: KFAIL "watch triggered on a.x".
	Add copyright year 2003.

Index: annota2.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.c++/annota2.exp,v
retrieving revision 1.8
diff -u -p -r1.8 annota2.exp
--- annota2.exp	20 Dec 2002 18:37:15 -0000	1.8
+++ annota2.exp	3 Jan 2003 21:18:08 -0000
@@ -1,4 +1,4 @@
-#   Copyright 1999, 2000, 2001, 2002
+#   Copyright 1999, 2000, 2001, 2002, 2003
 #   Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
@@ -194,9 +194,13 @@ gdb_expect {
 send_gdb "next\n"
 gdb_expect {
    -re "\r\n\032\032post-prompt\r\n\r\n\032\032starting\r\n\r\n\032\032frames-invalid\r\n\r\n\032\032frames-invalid\r\n\r\n\032\032frames-invalid\r\n\r\n\032\032watchpoint 3\r\nWatchpoint 3: a.x\r\n\r\nOld value = 0\r\nNew value = 1\r\n\r\n\032\032frame-begin 0 $hex\r\n\r\n\032\032frame-function-name\r\nmain\r\n\032\032frame-args\r\n \\(\\)\r\n\032\032frame-source-begin\r\n at \r\n\032\032frame-source-file\r\n.*$srcfile\r\n\032\032frame-source-file-end\r\n:\r\n\032\032frame-source-line\r\n$decimal\r\n\032\032frame-source-end\r\n\r\n\r\n\032\032source .*$srcfile.*beg:$hex\r\n\r\n\032\032frame-end\r\n\r\n\032\032stopped\r\n$gdb_prompt$" \
-	   { pass "watch triggered on a.x" }
+	   { setup_kfail "gdb/38" "i686*-*-*"
+             pass "watch triggered on a.x" }
    -re "\r\n\032\032post-prompt\r\n\r\n\032\032starting\r\n\r\n\032\032frames-invalid\r\n\r\n\032\032frames-invalid\r\n\r\n\032\032frames-invalid\r\n\r\n\032\032frames-invalid\r\n\r\n\032\032watchpoint 3\r\n\.*atchpoint 3: a.x\r\n\r\nOld value = 0\r\nNew value = 1\r\n\r\n\032\032frame-begin 0 $hex\r\n\r\n\032\032frame-function-name\r\nmain\r\n\032\032frame-args\r\n \\(\\)\r\n\032\032frame-source-begin\r\n at \r\n\032\032frame-source-file\r\n.*$srcfile\r\n\032\032frame-source-file-end\r\n:\r\n\032\032frame-source-line\r\n$decimal\r\n\032\032frame-source-end\r\n\r\n\r\n\032\032source .*$srcfile.*beg:$hex\r\n\r\n\032\032frame-end\r\n\r\n\032\032stopped\r\n.*$gdb_prompt$" \
-	   { pass "watch triggered on a.x" }
+	   { setup_kfail "gdb/38" "i686*-*-*"
+             pass "watch triggered on a.x" }
+   -re "\r\n\032\032post-prompt\r\n\r\n\032\032starting\r\n\r\n\032\032frames-invalid\r\n\r\n\032\032source .*$srcfile.*beg:$hex\r\n\r\n\032\032frame-end\r\n\r\n\032\032stopped\r\n$gdb_prompt$" \
+	   { kfail "gdb/38" "watch triggered on a.x" }
    -re ".*$gdb_prompt$"  { fail "watch triggered on a.x" }
    timeout    { fail "watch triggered on a.x (timeout)" }
 }


             reply	other threads:[~2003-01-03 21:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-03 21:36 David Carlton [this message]
2003-01-03 21:39 ` Daniel Jacobowitz
2003-01-03 21:48   ` David Carlton
2003-01-03 21:51     ` Daniel Jacobowitz
2003-01-03 22:14       ` David Carlton
2003-01-03 22:30         ` Daniel Jacobowitz
2003-01-03 22:57           ` David Carlton
2003-01-09 17:10 ` David Carlton
2003-01-03 22:12 Michael Elizabeth Chastain
2003-01-03 22:27 ` David Carlton
2003-01-03 23:19 Michael Elizabeth Chastain

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=ro1ptrdlxvk.fsf@jackfruit.Stanford.EDU \
    --to=carlton@math.stanford.edu \
    --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