This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Don't abort testsuite run
- From: Andreas Schwab <schwab at suse dot de>
- To: gdb-patches at sourceware dot org
- Date: Thu, 11 Jan 2007 18:28:44 +0100
- Subject: Don't abort testsuite run
When gdbtk_start in insight-support.exp doesn't find the insight
executable it calls exit, aborting the whole testsuite run.
Andreas.
2007-01-11 Andreas Schwab <schwab@suse.de>
* insight-support.exp (gdbtk_start): Return error status instead
of aborting the whole testsuite run.
--- gdb/testsuite/gdb.gdbtk/insight-support.exp.~1.1.~ 2004-07-17 04:00:05.000000000 +0200
+++ gdb/testsuite/gdb.gdbtk/insight-support.exp 2007-01-11 18:27:06.000000000 +0100
@@ -59,7 +59,7 @@ proc gdbtk_start {test} {
set INSIGHT $newGDB
} else {
perror "Cannot find Insight executable"
- exit 1
+ return "ERROR gdbtk_start"
}
verbose "Starting $INSIGHT -nx -q --tclcommand=$test"
@@ -67,13 +67,13 @@ proc gdbtk_start {test} {
set real_test [which $test]
if {$real_test == 0} {
perror "$test is not found"
- exit 1
+ return "ERROR gdbtk_start"
}
if {![is_remote host]} {
if { [which $INSIGHT] == 0 } {
perror "$INSIGHT does not exist."
- exit 1
+ return "ERROR gdbtk_start"
}
}
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."