public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
From: Ben Elliston <bje@redhat.com>
To: sid@sources.redhat.com
Subject: Testsuite improvement patch
Date: Mon, 10 Dec 2001 15:48:00 -0000	[thread overview]
Message-ID: <15381.7613.416810.99371@scooby.brisbane.redhat.com> (raw)
Message-ID: <20011210154800.gmVSEo_APOySFxlMKQ3xwnuU1fy79qraLoqXt6taUCU@z> (raw)

The following patch makes SID's component/cgen-cpu testsuites behave
like testsuites such as GCC's: if the test case passes, any object
code generated by the assembler or linker is subsequently removed.
This leaves the testsuite directory in a tidier state at the end of a
test run.

It is not necessary to wrap a Tcl catch{} command around "file delete"
commands -- according to the manual page: ``Trying to delete a
non-existent file is not considered an error.''

Okay to commit?


2001-12-11  Ben Elliston  <bje@redhat.com>

	* lib/cpudefs.exp (run-one-sid-test): Delete object code if the
	test case passes.

***************
*** 390,395 ****
--- 390,396 ----
  	        if { "$opts(xerror)" == "no" } {
  	    	    if [string match $opts(output) $output] {
  		        pass "$test \#$iter"
+ 			file delete ${name}.o ${exe-name}
  		    } else {
  		        verbose -log "output:  $output" 3
  		        verbose -log "pattern: $opts(output)" 3
***************
*** 408,413 ****
--- 409,415 ----
  	        } else {
  		    if [string match $opts(output) $output] {
  		        pass "$test \#$iter"
+ 			file delete ${name}.o ${exe-name}
  		    } else {
  		        verbose -log "output:  $output" 3
  		        verbose -log "pattern: $opts(output)" 3

             reply	other threads:[~2001-12-10 15:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-18 14:42 Ben Elliston [this message]
2001-11-18 15:17 ` Ben Elliston
2001-12-10 15:59   ` Ben Elliston
2001-12-10 15:48 ` Ben Elliston

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=15381.7613.416810.99371@scooby.brisbane.redhat.com \
    --to=bje@redhat.com \
    --cc=sid@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).