[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdb-patches
Subject:    sim testsuite improvement
From:       bje () redhat ! com (Ben Elliston)
Date:       2001-07-30 22:00:00
Message-ID: 15206.15183.364672.519381 () scooby ! brisbane ! redhat ! com
[Download RAW message or body]

I have just committed the following patch:

2001-07-31  Ben Elliston  <bje@redhat.com>

	* lib/sim-defs.exp (run_sim_test): Include a description such as
	"assembling" or "linking" that identifies the phase a test fails
	in, for easier analysis of failures.

Index: lib/sim-defs.exp
===================================================================
RCS file: /cvs/src/src/sim/testsuite/lib/sim-defs.exp,v
retrieving revision 1.2
diff -u -r1.2 sim-defs.exp
--- sim-defs.exp	2000/11/01 15:40:17	1.2
+++ sim-defs.exp	2001/07/31 04:58:29
@@ -254,7 +254,7 @@
 
 	if ![string match "" $comp_output] {
 	    verbose -log "$comp_output" 3
-	    fail "$mach $testname"
+	    fail "$mach $testname (assembling)"
 	    continue
 	}
 
@@ -266,7 +266,7 @@
 
 	if ![string match "" $comp_output] {
 	    verbose -log "$comp_output" 3
-	    fail "$mach $testname"
+	    fail "$mach $testname (linking)"
 	    continue
 	}
 
@@ -292,22 +292,22 @@
 		} else {
 		    verbose -log "output:  $output" 3
 		    verbose -log "pattern: $opts(output)" 3
-		    fail "$mach $testname"
+		    fail "$mach $testname (execution)"
 		}
 	    } else {
 		verbose -log "`pass' return code when expecting failure" 3
-		fail "$mach $testname"
+		fail "$mach $testname (execution)"
 	    }
 	} elseif { "$status" == "fail" } {
 	    if { "$opts(xerror)" == "no" } {
-		fail "$mach $testname"
+		fail "$mach $testname (execution)"
 	    } else {
 		if [string match $opts(output) $output] {
 		    pass "$mach $testname"
 		} else {
 		    verbose -log "output:  $output" 3
 		    verbose -log "pattern: $opts(output)" 3
-		    fail "$mach $testname"
+		    fail "$mach $testname (execution)"
 		}
 	    }
 	} else {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic