* gdb.base/breakpoint-shadow.exp: Fix intermittent failures.

Add $gdb_prompt to second breakpoint regexp.
This commit is contained in:
Doug Evans 2009-09-10 22:26:51 +00:00
parent 3e81d9f9fa
commit 37c3696d63
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-09-10 Doug Evans <dje@google.com>
* gdb.base/breakpoint-shadow.exp: Fix intermittent failures.
Add $gdb_prompt to second breakpoint regexp.
2009-09-08 Thiago Jung Bauermann <thiago.bauermann@gmail.com>
* gdb.python/Makefile.in (EXECUTABLES): Adjust to new executable

View File

@ -50,7 +50,7 @@ gdb_test_multiple "disass main" $test {
gdb_test "b [gdb_get_line_number "break-first"]" "Breakpoint \[0-9\] at .*" "First breakpoint placed"
set test "Second breakpoint placed"
gdb_test_multiple "b [gdb_get_line_number "break-second"]" $test {
-re "Breakpoint \[0-9\] at (0x\[0-9a-f\]*):.*" {
-re "Breakpoint \[0-9\] at (0x\[0-9a-f\]*):.*$gdb_prompt $" {
pass $test
set bpt2address $expect_out(1,string)
}