This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Fix intermittent readline.exp test


This test didn't consume the final prompt.  If your system running GDB
was slow or loaded enough, the following "print 42" test would fail.
Checked in after some stress testing on powerpc-eabi.

-- 
Daniel Jacobowitz
CodeSourcery

2007-07-27  Daniel Jacobowitz  <dan@codesourcery.com>

	gdb/testsuite/
	* gdb.base/readline.exp (operate_and_get_next): Match the final
	prompt.

Index: gdb/testsuite/gdb.base/readline.exp
===================================================================
--- gdb/testsuite/gdb.base/readline.exp	(revision 177369)
+++ gdb/testsuite/gdb.base/readline.exp	(working copy)
@@ -139,6 +139,9 @@ proc operate_and_get_next {name args} {
     set count [expr {$count + 2}]
   }
 
+  # Match the prompt so the next test starts at the right place.
+  gdb_test "" "" "$name - final prompt"
+
   return 1
 }
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]