This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
sim testsuite improvement
- To: gdb-patches at sources dot redhat dot com
- Subject: sim testsuite improvement
- From: Ben Elliston <bje at redhat dot com>
- Date: Tue, 31 Jul 2001 14:59:59 +1000 (EST)
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 {