aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/foll-fork.exp4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 9eebcda..c494698 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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.
diff --git a/gdb/testsuite/gdb.base/foll-fork.exp b/gdb/testsuite/gdb.base/foll-fork.exp
index 40d0702..f2d55fc 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"
}