From 8f7ae686826051abd08d0e72a8bf66b39d3ff9ce Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Wed, 6 Jul 2011 15:00:15 +0000 Subject: [PATCH] Fix race in gdb.python/py-evthreads.exp --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.python/py-evthreads.exp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 22b6a987d41..5d24ec525b6 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-07-06 Marek Polacek + + * gdb.python/py-evthreads.exp: Fix race by adding an anchor to match + the whole output. + 2011-07-05 Tom Tromey * 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 6ea7eb40a4b..89847f168f5 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 { -- 2.30.2