From aaaf81a30223b8d9dbf68e33596a8b6befacec35 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Tue, 3 May 2011 18:02:00 +0000 Subject: [PATCH] Fix races in gdb.base/pr10179.exp. --- gdb/testsuite/ChangeLog | 6 ++++++ gdb/testsuite/gdb.base/pr10179.exp | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 62c7cffd0b2..3e330c30270 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2011-05-03 Marek Polacek + + * 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 PR testsuite/12649 diff --git a/gdb/testsuite/gdb.base/pr10179.exp b/gdb/testsuite/gdb.base/pr10179.exp index e125ad69bec..2eab6f98ee8 100644 --- a/gdb/testsuite/gdb.base/pr10179.exp +++ b/gdb/testsuite/gdb.base/pr10179.exp @@ -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 "delete breakpoints" ".*" "" "Delete all breakpoints.*" "y" +delete_breakpoints 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\]*.*" -- 2.30.2