+2011-09-30 Marek Polacek <mpolacek@redhat.com>
+
+ * gdb.python/python.exp (verify pagination beforehand)
+ (verify pagination afterwards): Fix race by splitting the line.
+
2011-09-29 Joseph Myers <joseph@codesourcery.com>
* lib/gdb.exp (is_amd64_regs_target, is_x86_like_target): Allow
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
}
}
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
}
}