From: Marek Polacek Date: Thu, 29 Sep 2011 14:13:00 +0000 (+0000) Subject: gdb.base/foll-fork.exp: fix up race X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e9101ff5a7433978be97bebff963cd4124ca8bd8;p=binutils-gdb.git gdb.base/foll-fork.exp: fix up race --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 9eebcda8432..c494698d8ce 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-09-29 Marek Polacek + + * gdb.base/foll-fork.exp: Fix race by adding "y or n" to the + matching pattern. + 2011-09-28 Paul Koning * gdb.python/py-type.c (enum E): New. diff --git a/gdb/testsuite/gdb.base/foll-fork.exp b/gdb/testsuite/gdb.base/foll-fork.exp index 40d0702e28f..f2d55fc5ee6 100644 --- a/gdb/testsuite/gdb.base/foll-fork.exp +++ b/gdb/testsuite/gdb.base/foll-fork.exp @@ -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" }