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]

testsuite/lib/insight-support.exp patch


Hi -

The following patch was approved for the test suite.  Its purpose
is to tolerate a crash of the child gdb process, so to let the 
test suite continue instead of aborting completely.


2001-10-04  Frank Ch. Eigler  <fche@redhat.com>

	* lib/insight-support.exp (gdbtk_start): Don't exit dejagnu
	if gdb child process crashes, just signal an error.

Index: lib/insight-support.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/insight-support.exp,v
retrieving revision 1.4
diff -u -r1.4 insight-support.exp
--- insight-support.exp	2001/09/19 15:39:54	1.4
+++ insight-support.exp	2001/10/04 22:06:30
@@ -94,7 +94,7 @@
   set err [catch {exec $GDB -nx -q --tclcommand=$test} res]
   if { $err } {
     perror "Execing $GDB failed: $res"
-    exit 1;
+    append res "\nERROR gdb-crash"
   }
   return $res
 }


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