Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: gdb-patches@sourceware.org
Subject: Testsuite failures in gdb.gdb/selftest.exp
Date: Wed, 31 Jan 2007 17:12:00 -0000	[thread overview]
Message-ID: <jed54v86ii.fsf@sykes.suse.de> (raw)

With heavy optimizations there can be even more code reordering, causing
spurious failures in do_steps_and_nexts.

The quit_flag case was seen on ppc, the gdb_std{out,err} cases on ia64.

Andreas.

2007-01-31  Andreas Schwab  <schwab@suse.de>

	* gdb.gdb/selftest.exp (do_steps_and_nexts): Add more matches.

--- gdb/testsuite/gdb.gdb/selftest.exp.~1.10.~	2007-01-10 11:18:59.000000000 +0100
+++ gdb/testsuite/gdb.gdb/selftest.exp	2007-01-31 18:02:16.000000000 +0100
@@ -177,6 +177,10 @@ proc do_steps_and_nexts {} {
 		set description "step over ndir initialization"
 		set command "step"
 	    }
+	    -re ".*quit_flag = 0.*$gdb_prompt $" {
+		set description "step over quit_flag initialization"
+		set command "step"
+	    }
 	    -re ".*instream = stdin.*$gdb_prompt $" {
 		set description "step over instream initialization"
 		set command "step"
@@ -185,6 +189,14 @@ proc do_steps_and_nexts {} {
 		set description "next over getcwd"
 		set command "next"
 	    }
+	    -re ".*gdb_stdout = stdio_fileopen .stdout.;.*$gdb_prompt $" {
+		set description "step over gdb_stdout initialization"
+		set command "step"
+	    }
+	    -re ".*gdb_stderr = stdio_fileopen .stderr.;.*$gdb_prompt $" {
+		set description "step over gdb_stderr initialization"
+		set command "step"
+	    }
 	    -re "\[ \t\]+\{\r\n$gdb_prompt $" {
 		setup_xfail "mips-*-irix5*"
 		fail "$description ended up at odd location"

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


             reply	other threads:[~2007-01-31 17:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-31 17:12 Andreas Schwab [this message]
2007-01-31 17:19 ` Daniel Jacobowitz
2007-01-31 17:55   ` Andreas Schwab
2007-01-31 18:19     ` Daniel Jacobowitz
2007-01-31 19:12       ` Andreas Schwab
2007-01-31 19:15         ` Daniel Jacobowitz
2007-01-31 19:37           ` Andreas Schwab
2007-01-31 19:00 ` Eli Zaretskii

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=jed54v86ii.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=gdb-patches@sourceware.org \
    /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