This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

sim testsuite improvement


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 {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]