* [PATCH] gdb.base/foll-fork.exp: fix up race (PR testsuite/12649)
@ 2011-09-29 13:00 Marek Polacek
2011-09-29 13:26 ` Marek Polacek
0 siblings, 1 reply; 2+ messages in thread
From: Marek Polacek @ 2011-09-29 13:00 UTC (permalink / raw)
To: gdb-patches
This test with read1 failed:
FAIL: gdb.base/foll-fork.exp: set follow-fork child, cleanup (got interactive prompt)
ERROR: breakpoints not deleted
UNRESOLVED: gdb.base/foll-fork.exp: setting breakpoint at main
The problem is that we didn't match the whole question "Delete all..."
properly. Fixed by adding anchor "y or n" explicitly. Tested with both
read{,1}. Ok to apply?
2011-09-29 Marek Polacek <mpolacek@redhat.com>
* gdb.base/foll-fork.exp: Fix race by adding "y or n" to the
matching pattern.
--- gdb/gdb/testsuite/gdb.base/foll-fork.exp.mp 2011-09-29 14:20:10.812542562 +0200
+++ gdb/gdb/testsuite/gdb.base/foll-fork.exp 2011-09-29 14:32:13.185543609 +0200
@@ -168,7 +168,7 @@ proc catch_fork_child_follow {} {
gdb_test "delete breakpoints" \
"" \
"set follow-fork child, cleanup" \
- "Delete all breakpoints.*$" \
+ "Delete all breakpoints.*y or n.*$" \
"y"
}
@@ -255,7 +255,7 @@ proc tcatch_fork_parent_follow {} {
gdb_test "delete breakpoints" \
"" \
"set follow-fork parent, cleanup" \
- "Delete all breakpoints.*$" \
+ "Delete all breakpoints.*y or n.*$" \
"y"
}
Marek
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-29 13:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-29 13:00 [PATCH] gdb.base/foll-fork.exp: fix up race (PR testsuite/12649) Marek Polacek
2011-09-29 13:26 ` Marek Polacek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox