gdb.base/foll-fork.exp: fix up race
authorMarek Polacek <mpolacek@sourceware.org>
Thu, 29 Sep 2011 14:13:00 +0000 (14:13 +0000)
committerMarek Polacek <mpolacek@sourceware.org>
Thu, 29 Sep 2011 14:13:00 +0000 (14:13 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/foll-fork.exp

index 9eebcda8432ffac3dc6078cccd1890ce11073865..c494698d8ce9dd53d65ec041ccb423b28e4f7e7f 100644 (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>
 
        * gdb.python/py-type.c (enum E): New.
index 40d0702e28fe39315f4593d492242a32394620ac..f2d55fc5ee6606d67733a9a781bab63bb348a7f0 100644 (file)
@@ -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"
 }