Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] gdb.python/py-evthreads.exp: fix racy test (PR testsuite/12649)
@ 2011-06-28 14:19 Marek Polacek
  2011-06-28 15:51 ` Joel Brobecker
  0 siblings, 1 reply; 11+ messages in thread
From: Marek Polacek @ 2011-06-28 14:19 UTC (permalink / raw)
  To: gdb-patches

This test fails with read1() because after sending "continue&"
the regexp with ".*" at the end didn't eat all that it ought to.
This causes trouble later on.  Thusly fixed by adding the "\r\n$gdb_prompt".
Tested with both read{,1}.  OK?

2011-06-28  Marek Polacek  <mpolacek@redhat.com>

	* gdb.python/py-evthreads.exp: Fix race by adding an anchor to match 
	the whole output.

--- gdb/gdb/testsuite/gdb.python/py-evthreads.exp.mp    2011-06-22 15:14:07.869452151 +0200
+++ gdb/gdb/testsuite/gdb.python/py-evthreads.exp       2011-06-28 16:10:53.157450752 +0200
@@ -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 {



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-07-06 19:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-28 14:19 [PATCH] gdb.python/py-evthreads.exp: fix racy test (PR testsuite/12649) Marek Polacek
2011-06-28 15:51 ` Joel Brobecker
2011-06-30 10:26   ` Marek Polacek
2011-07-06 17:21     ` Jan Kratochvil
2011-07-06 17:32       ` Joel Brobecker
2011-07-06 17:57         ` Marek Polacek
2011-07-06 19:53           ` Jan Kratochvil
2011-07-06 22:06             ` Marek Polacek
2011-07-06 14:36   ` Marek Polacek
2011-07-06 14:51     ` Joel Brobecker
2011-07-06 15:46       ` Marek Polacek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox