mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 12:23:31 +08:00
Fix races in gdb.base/pr10179.exp.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2011-05-03 Marek Polacek <mpolacek@redhat.com>
|
||||||
|
|
||||||
|
* gdb.base/pr10179.exp: Get rid of races using `delete_breakpoints'
|
||||||
|
in place of `gdb_test "delete breakpoints"'. This eliminates two
|
||||||
|
testcases.
|
||||||
|
|
||||||
2011-05-02 Pedro Alves <pedro@codesourcery.com>
|
2011-05-02 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
PR testsuite/12649
|
PR testsuite/12649
|
||||||
|
@ -29,10 +29,10 @@ if ![runto_main] {
|
|||||||
|
|
||||||
gdb_test "rbreak foo.*" "Breakpoint \[0-9\]+\[^\\n\]*\\nint foo\[12\]\[^\\n\]*\\nBreakpoint \[0-9\]+\[^\\n\]*\\nint foo\[12\].*"
|
gdb_test "rbreak foo.*" "Breakpoint \[0-9\]+\[^\\n\]*\\nint foo\[12\]\[^\\n\]*\\nBreakpoint \[0-9\]+\[^\\n\]*\\nint foo\[12\].*"
|
||||||
|
|
||||||
gdb_test "delete breakpoints" ".*" "" "Delete all breakpoints.*" "y"
|
delete_breakpoints
|
||||||
|
|
||||||
gdb_test "rbreak pr10179-a.c:foo.*" "Breakpoint \[0-9\]+\[^\\n\]*\\nint foo.*"
|
gdb_test "rbreak pr10179-a.c:foo.*" "Breakpoint \[0-9\]+\[^\\n\]*\\nint foo.*"
|
||||||
|
|
||||||
gdb_test "delete breakpoints" ".*" "" "Delete all breakpoints.*" "y"
|
delete_breakpoints
|
||||||
|
|
||||||
gdb_test "rbreak pr10179-a.c : .*" "Breakpoint \[0-9\]+\[^\\n\]*\\nint bar1\[^\\n\]*\\nBreakpoint \[0-9\]+\[^\\n\]*\\nint foo1\[^\\n\]*\\nBreakpoint \[0-9\]+\[^\\n\]*\\nint main\[^\\n\]*.*"
|
gdb_test "rbreak pr10179-a.c : .*" "Breakpoint \[0-9\]+\[^\\n\]*\\nint bar1\[^\\n\]*\\nBreakpoint \[0-9\]+\[^\\n\]*\\nint foo1\[^\\n\]*\\nBreakpoint \[0-9\]+\[^\\n\]*\\nint main\[^\\n\]*.*"
|
||||||
|
Reference in New Issue
Block a user