This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] Detect non-timeout fails in chng-syms.exp
- From: Fred Fish <fnf at ninemoons dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: fnf at redhat dot com
- Date: Fri, 27 Feb 2004 22:23:07 -0700
- Subject: [RFA] Detect non-timeout fails in chng-syms.exp
- Reply-to: fnf at redhat dot com
I ran into a case where chng-syms.exp was failing however the test did
not detect that, since it only checks for the expected passing output
or a timeout. The wrong output matches neither. This patch fixes it.
-Fred
2004-02-27 Fred Fish <fnf@redhat.com>
* gdb.base/chng-syms.exp: Add expect condition to match failing
case that isn't a timeout.
Index: gdb.base/chng-syms.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/chng-syms.exp,v
retrieving revision 1.2
diff -c -p -r1.2 chng-syms.exp
*** gdb.base/chng-syms.exp 31 Jan 2004 18:11:25 -0000 1.2
--- gdb.base/chng-syms.exp 28 Feb 2004 05:00:26 -0000
*************** if { [gdb_compile "${srcdir}/${subdir}/
*** 108,113 ****
--- 108,116 ----
-re "Error in re-setting .*No symbol .var1..*Program exited normally.*" {
pass "running with invalidated bpt condition after executable changes"
}
+ -re "$gdb_prompt $" {
+ fail "running with invalidated bpt condition after executable changes"
+ }
timeout {
fail "(timeout) running with invalidated bpt condition after executable changes"
}