]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix race in gdb.python/py-evthreads.exp
authorMarek Polacek <mpolacek@sourceware.org>
Wed, 6 Jul 2011 15:00:15 +0000 (15:00 +0000)
committerMarek Polacek <mpolacek@sourceware.org>
Wed, 6 Jul 2011 15:00:15 +0000 (15:00 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-evthreads.exp

index 22b6a987d415e30ade69d274c888d86eefb14e2d..5d24ec525b604fc768d6a46bedf4f1b1dc9b7fdc 100644 (file)
@@ -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.
index 6ea7eb40a4bd895db71fb57c2d33237381f34ebf..89847f168f51f17dff671a48e122280aa508b015 100644 (file)
@@ -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 {