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]

PATCH: don't hang on unexpected template menu



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


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