aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/python.exp
diff options
context:
space:
mode:
authorMarek Polacek <mpolacek@sourceware.org>2011-09-30 15:07:33 +0000
committerMarek Polacek <mpolacek@sourceware.org>2011-09-30 15:07:33 +0000
commitc5cb204fbbdc0207d7aa1dd9b7fc5ba807fc3d58 (patch)
tree7acc48a59068fb8e228611254e68bd94f0a6cfae /gdb/testsuite/gdb.python/python.exp
parentfc28f9aa231c8f3386e1c9bdb448d9cdd9cae1a9 (diff)
downloadgdb-c5cb204fbbdc0207d7aa1dd9b7fc5ba807fc3d58.zip
gdb-c5cb204fbbdc0207d7aa1dd9b7fc5ba807fc3d58.tar.gz
gdb-c5cb204fbbdc0207d7aa1dd9b7fc5ba807fc3d58.tar.bz2
gdb.python/python.exp: fix up race
Diffstat (limited to 'gdb/testsuite/gdb.python/python.exp')
-rw-r--r--gdb/testsuite/gdb.python/python.exp16
1 files changed, 14 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp
index 4da3c88..ee39dba 100644
--- a/gdb/testsuite/gdb.python/python.exp
+++ b/gdb/testsuite/gdb.python/python.exp
@@ -106,7 +106,13 @@ gdb_test_no_output "set height $lines"
set test "verify pagination beforehand"
gdb_test_multiple "python print \"\\n\" * $lines" $test {
- -re "---Type <return> to continue, or q <return> to quit---$" {
+ -re "---Type <return>" {
+ exp_continue
+ }
+ -re " to continue, or q <return>" {
+ exp_continue
+ }
+ -re " to quit---$" {
pass $test
}
}
@@ -116,7 +122,13 @@ gdb_test "python if gdb.execute('python print \"\\\\n\" * $lines', to_string=Tru
set test "verify pagination afterwards"
gdb_test_multiple "python print \"\\n\" * $lines" $test {
- -re "---Type <return> to continue, or q <return> to quit---$" {
+ -re "---Type <return>" {
+ exp_continue
+ }
+ -re " to continue, or q <return>" {
+ exp_continue
+ }
+ -re " to quit---$" {
pass $test
}
}