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]
Other format: [Raw text]

[RFA] Detect non-timeout fails in chng-syms.exp


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" 
  	}



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