This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Fix intermittent readline.exp test
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Date: Fri, 27 Jul 2007 11:16:40 -0400
- Subject: [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
}