From: Joseph Myers Date: Thu, 3 Sep 2009 22:03:21 +0000 (+0000) Subject: * gdb.base/ending-run.exp: Restrict regular expression matching X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a68ae16f8d20dbb3474bde88566ae3171f33a90;p=binutils-gdb.git * gdb.base/ending-run.exp: Restrict regular expression matching line number to require closing brace following. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 271b677880c..824dfb77990 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-09-03 Joseph Myers + + * gdb.base/ending-run.exp: Restrict regular expression matching + line number to require closing brace following. + 2009-09-03 Doug Evans * gdb.base/store.exp (check_set): Fix typo in expected value message. diff --git a/gdb/testsuite/gdb.base/ending-run.exp b/gdb/testsuite/gdb.base/ending-run.exp index ccd5f6f7a84..f789698535e 100644 --- a/gdb/testsuite/gdb.base/ending-run.exp +++ b/gdb/testsuite/gdb.base/ending-run.exp @@ -120,7 +120,7 @@ set program_exited 0 send_gdb "next\n" set nexted 0 gdb_expect { - -re "33.*$gdb_prompt $" { + -re "33\[ \t\]+\}.*$gdb_prompt $" { # sometimes we stop at the closing brace, if so, do another next if { $nexted } { fail "step out of main"