gdb.base/foll-fork.exp: fix up race

This commit is contained in:
Marek Polacek 2011-09-29 14:13:00 +00:00
parent c227efa6d5
commit e9101ff5a7
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-09-29 Marek Polacek <mpolacek@redhat.com>
* gdb.base/foll-fork.exp: Fix race by adding "y or n" to the
matching pattern.
2011-09-28 Paul Koning <paul_koning@dell.com> 2011-09-28 Paul Koning <paul_koning@dell.com>
* gdb.python/py-type.c (enum E): New. * gdb.python/py-type.c (enum E): New.

View File

@ -168,7 +168,7 @@ proc catch_fork_child_follow {} {
gdb_test "delete breakpoints" \ gdb_test "delete breakpoints" \
"" \ "" \
"set follow-fork child, cleanup" \ "set follow-fork child, cleanup" \
"Delete all breakpoints.*$" \ "Delete all breakpoints. \\(y or n\\) $" \
"y" "y"
} }
@ -255,7 +255,7 @@ proc tcatch_fork_parent_follow {} {
gdb_test "delete breakpoints" \ gdb_test "delete breakpoints" \
"" \ "" \
"set follow-fork parent, cleanup" \ "set follow-fork parent, cleanup" \
"Delete all breakpoints.*$" \ "Delete all breakpoints. \\(y or n\\) $" \
"y" "y"
} }