This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] gdb.c++/classes.exp
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH] gdb.c++/classes.exp
- From: Jimmy Guo <guo at cup dot hp dot com>
- Date: Fri, 28 Jul 2000 17:36:48 -0700 (PDT)
This patch makes sure that the expect buffer does not contain
"$gdb_prompt " from the 'finish' command that can be picked up by the
next test point.
Fri Jul 28 17:31:38 Jimmy Guo <guo@cup.hp.com>
* gdb.c++/classes.exp: Use gdb_test instead of send_gdb to
'finish', otherwise uncaptured gdb_prompt would potentially
throw remaining test points out of sync.
Index: gdb.c++/classes.exp
/usr/local/bin/diff -c -L gdb.c++/classes.exp gdb.c++/classes.exp@@/GDB_2000_07_24 gdb.c++/classes.exp
*** gdb.c++/classes.exp
--- gdb.c++/classes.exp Fri Jul 28 17:30:32 2000
***************
*** 835,841 ****
gdb_breakpoint enums2
if [ gdb_continue enums2 ]==0 then {
! send_gdb "finish\n"
test_enums
}
--- 835,841 ----
gdb_breakpoint enums2
if [ gdb_continue enums2 ]==0 then {
! gdb_test "finish" "" ""
test_enums
}