[commit] Fix a typo in killed.exp
Daniel Jacobowitz
drow@false.org
Sat Sep 10 14:19:00 GMT 2005
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)"
}
}
More information about the Gdb-patches
mailing list