[commit] Fix threadapply.exp
Daniel Jacobowitz
drow@false.org
Sun Nov 14 18:46:00 GMT 2004
The argument to gdb_test_multiple should not end with a newline; if it does,
then GDB will output two prompts, and the test harness can get out of sync.
This patch fixes an intermittent failure I observed today.
Committed as obvious.
--
Daniel Jacobowitz
2004-11-14 Daniel Jacobowitz <dan@debian.org>
* gdb.threads/threadapply.exp: Correct "macro details" test.
Index: testsuite/gdb.threads/threadapply.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/threadapply.exp,v
retrieving revision 1.1
diff -u -p -r1.1 threadapply.exp
--- testsuite/gdb.threads/threadapply.exp 11 Nov 2004 21:37:24 -0000 1.1
+++ testsuite/gdb.threads/threadapply.exp 14 Nov 2004 18:44:04 -0000
@@ -54,7 +54,7 @@ gdb_test "continue"
gdb_test_multiple "define backthread" "defining macro" {
-re "Type commands for definition of \"backthread\".\r\nEnd with a line saying just \"end\".\r\n>$" {
- gdb_test_multiple "bt\np\/x 20\nend\n" "macro details" {
+ gdb_test_multiple "bt\np/x 20\nend" "macro details" {
-re "$gdb_prompt $" {
pass "macro details"
}
More information about the Gdb-patches
mailing list