aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMarek Polacek <mpolacek@sourceware.org>2011-07-06 15:00:15 +0000
committerMarek Polacek <mpolacek@sourceware.org>2011-07-06 15:00:15 +0000
commit8f7ae686826051abd08d0e72a8bf66b39d3ff9ce (patch)
tree17b32df4e337cfb6436043d253d3ca49422b4270 /gdb
parent74f26653842a0b70591c325c3da0cd077cf85d36 (diff)
downloadgdb-8f7ae686826051abd08d0e72a8bf66b39d3ff9ce.zip
gdb-8f7ae686826051abd08d0e72a8bf66b39d3ff9ce.tar.gz
gdb-8f7ae686826051abd08d0e72a8bf66b39d3ff9ce.tar.bz2
Fix race in gdb.python/py-evthreads.exp
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.python/py-evthreads.exp2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 22b6a98..5d24ec5 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-06 Marek Polacek <mpolacek@redhat.com>
+
+ * gdb.python/py-evthreads.exp: Fix race by adding an anchor to match
+ the whole output.
+
2011-07-05 Tom Tromey <tromey@redhat.com>
* gdb.java/jprint.java (jprint.hi): New field.
diff --git a/gdb/testsuite/gdb.python/py-evthreads.exp b/gdb/testsuite/gdb.python/py-evthreads.exp
index 6ea7eb4..89847f1 100644
--- a/gdb/testsuite/gdb.python/py-evthreads.exp
+++ b/gdb/testsuite/gdb.python/py-evthreads.exp
@@ -86,7 +86,7 @@ gdb_expect {
send_gdb "continue&\n"
gdb_expect {
-re ".*event type: continue.*
-.*thread num: 1.*" {
+.*thread num: 1.*\r\n$gdb_prompt " {
pass "continue thread 1"
}
timeout {