This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

[commit] Fix a typo in killed.exp


Tsk tsk.  I introduced this bit of bogusity two years ago and no one
identified it in all that time... if this test times out, instead of a
failure, you'll get:

ERROR: (DejaGnu) proc "(gdb) {$}" does not exist.
The error code is NONE
The info on the error is:
close: spawn id exp10 not open
    while executing
"close -i exp10"
    invoked from within
"catch "close -i $spawn_id""

and the whole test run will abort.  Fixed as below, committed as obvious.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

2005-09-10  Daniel Jacobowitz  <dan@codesourcery.com>

	* killed.exp: Correct gdb_expect syntax.

Index: killed.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/killed.exp,v
retrieving revision 1.6
diff -u -p -r1.6 killed.exp
--- killed.exp	13 Oct 2003 16:32:51 -0000	1.6
+++ killed.exp	10 Sep 2005 14:14:45 -0000
@@ -1,4 +1,4 @@
-# Copyright 2002, 2003 Free Software Foundation, Inc.
+# Copyright 2002, 2003, 2005 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -80,7 +80,7 @@ gdb_expect {
   -re "$gdb_prompt $" {
     pass "run program to completion"
   }
-  timeout "$gdb_prompt $" {
+  timeout {
     fail "run program to completion (timeout)"
   }
 }


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