summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <jsm@polyomino.org.uk>2009-09-03 22:03:20 +0000
committerJoseph Myers <jsm@polyomino.org.uk>2009-09-03 22:03:20 +0000
commit9d1908ae383abb9d7a22651b658f4704152ba57e (patch)
tree560f34200f4d053228ae940c1c629d444b9bebc6
parent6893ff8ecaaf203a7b1d15b526e7319361276a5b (diff)
downloadgdb-9d1908ae383abb9d7a22651b658f4704152ba57e.tar.gz
* gdb.base/ending-run.exp: Restrict regular expression matching
line number to require closing brace following.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/ending-run.exp2
2 files changed, 6 insertions, 1 deletions
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 <joseph@codesourcery.com>
+
+ * gdb.base/ending-run.exp: Restrict regular expression matching
+ line number to require closing brace following.
+
2009-09-03 Doug Evans <dje@google.com>
* 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"