mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
gdb.python/python.exp: fix up race
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2011-09-29 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* lib/gdb.exp (is_amd64_regs_target, is_x86_like_target): Allow
|
* lib/gdb.exp (is_amd64_regs_target, is_x86_like_target): Allow
|
||||||
|
@ -106,7 +106,13 @@ gdb_test_no_output "set height $lines"
|
|||||||
|
|
||||||
set test "verify pagination beforehand"
|
set test "verify pagination beforehand"
|
||||||
gdb_test_multiple "python print \"\\n\" * $lines" $test {
|
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
|
pass $test
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -116,7 +122,13 @@ gdb_test "python if gdb.execute('python print \"\\\\n\" * $lines', to_string=Tru
|
|||||||
|
|
||||||
set test "verify pagination afterwards"
|
set test "verify pagination afterwards"
|
||||||
gdb_test_multiple "python print \"\\n\" * $lines" $test {
|
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
|
pass $test
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user