PATCH: don't hang on unexpected template menu

Jim Blandy jimb@zwingli.cygnus.com
Tue Apr 24 10:49:00 GMT 2001


I've committed this.

2001-04-13  Jim Blandy  <jimb@redhat.com>

	* gdb.c++/templates.exp: If we see the prompt for the overload
	list, but we haven't recognized any of the longer patterns,
	arrange for this test to fail, not hang.

Index: gdb/testsuite/gdb.c++/templates.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/testsuite/gdb.c++/templates.exp,v
retrieving revision 1.31
diff -c -r1.31 templates.exp
*** gdb/testsuite/gdb.c++/templates.exp	2000/11/14 11:00:32	1.31
--- gdb/testsuite/gdb.c++/templates.exp	2001/04/14 09:02:08
***************
*** 113,118 ****
--- 113,119 ----
  		"canceled" \
  		"constructor breakpoint"
  	}
+         -re ".*\n> $" { fail "constructor breakpoint" }
  	-re ".*$gdb_prompt $" { fail "constructor breakpoint" }
  	default { fail "constructor breakpoint (timeout)" }
      }



More information about the Gdb-patches mailing list