From: Marek Polacek Date: Wed, 6 Jul 2011 15:00:15 +0000 (+0000) Subject: Fix race in gdb.python/py-evthreads.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f7ae686826051abd08d0e72a8bf66b39d3ff9ce;p=binutils-gdb.git Fix race in gdb.python/py-evthreads.exp --- 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 {