Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Hans-Peter Nilsson <hans-peter.nilsson@axis.com>
To: gdb-patches@sources.redhat.com
Subject: [RFA:] sim-defs.exp: support xfail
Date: Wed, 10 Nov 2004 09:52:00 -0000	[thread overview]
Message-ID: <200411100952.iAA9q7Ys002024@ignucius.se.axis.com> (raw)

Directly taken from the same option in the ld run_dump_test.

Ok to commit?

2004-11-10  Hans-Peter Nilsson  <hp@axis.com>

	* lib/sim-defs.exp (run_sim_test): Support "xfail" option.


Index: sim-defs.exp
===================================================================
RCS file: /cvs/src/src/sim/testsuite/lib/sim-defs.exp,v
retrieving revision 1.8
diff -c -p -r1.8 sim-defs.exp
*** sim-defs.exp	26 Oct 2004 08:07:59 -0000	1.8
--- sim-defs.exp	10 Nov 2004 09:49:44 -0000
*************** proc sim_run { prog sim_opts prog_opts r
*** 163,168 ****
--- 163,169 ----
  # sim[(mach-list)]: <simulator options>
  # output: program output pattern to match with string-match
  # xerror: program is expected to return with a "failure" exit code
+ # xfail: <target-triple-where-test-fails>
  # If `output' is not specified, the program must output "pass" if !xerror or
  # "fail" if xerror.
  # The parens in "optname()" are optional if the specification is for all machs.
*************** proc run_sim_test { name requested_machs
*** 196,201 ****
--- 197,203 ----
      set opts(mach) ""
      set opts(timeout) ""
      set opts(xerror) "no"
+     set opts(xfail) ""
  
      if ![info exists global_as_options] {
          set global_as_options ""
*************** proc run_sim_test { name requested_machs
*** 262,267 ****
--- 268,278 ----
  
  	verbose -log "Testing $name on machine $mach."
  
+ 	# Time to setup xfailures.
+ 	foreach targ $opts(xfail) {
+ 	    setup_xfail $targ
+ 	}
+ 
  	if ![info exists opts(as,$mach)] {
  	    set opts(as,$mach) $opts(as)
  	}

brgds, H-P


             reply	other threads:[~2004-11-10  9:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-10  9:52 Hans-Peter Nilsson [this message]
2004-11-10 14:03 ` Andrew Cagney
2004-11-10 14:55   ` Hans-Peter Nilsson
2004-11-10 16:40     ` Andrew Cagney
2004-11-16 16:22       ` Hans-Peter Nilsson

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=200411100952.iAA9q7Ys002024@ignucius.se.axis.com \
    --to=hans-peter.nilsson@axis.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