* [ob] Fix gdb.stabs/weird.exp
@ 2006-11-22 15:25 Daniel Jacobowitz
2006-11-22 15:56 ` Mark Kettenis
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Jacobowitz @ 2006-11-22 15:25 UTC (permalink / raw)
To: gdb-patches
send_gdb needs \n at the end; gdb_test_multiple, like gdb_test, doesn't.
The extra GDB prompt can cause random test failures.
I should commit this to the branch too. I'll do that after I check
it out.
--
Daniel Jacobowitz
CodeSourcery
2006-11-22 Daniel Jacobowitz <dan@codesourcery.com>
* gdb.stabs/weird.exp (print_weird_var): Don't send extra \n.
Index: gdb.stabs/weird.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.stabs/weird.exp,v
retrieving revision 1.11
diff -u -p -r1.11 weird.exp
--- gdb.stabs/weird.exp 9 Nov 2006 19:31:14 -0000 1.11
+++ gdb.stabs/weird.exp 22 Nov 2006 15:23:25 -0000
@@ -1,4 +1,4 @@
-# Copyright 1997, 1998, 1999, 2001, 2003, 2004
+# Copyright 1997, 1998, 1999, 2001, 2003, 2004, 2006
# Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
@@ -228,7 +228,7 @@ proc print_weird_var { var } {
# Make sure that the variable gets printed out correctly, without
# any sort of warning message.
- gdb_test_multiple "print $var\n" "variable $var printed property" {
+ gdb_test_multiple "print $var" "variable $var printed property" {
-re "^print $var\r*\n.\[0-9\]* = 42.*$gdb_prompt $" {
pass "variable $var printed properly"
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ob] Fix gdb.stabs/weird.exp
2006-11-22 15:25 [ob] Fix gdb.stabs/weird.exp Daniel Jacobowitz
@ 2006-11-22 15:56 ` Mark Kettenis
0 siblings, 0 replies; 2+ messages in thread
From: Mark Kettenis @ 2006-11-22 15:56 UTC (permalink / raw)
To: gdb-patches
> send_gdb needs \n at the end; gdb_test_multiple, like gdb_test, doesn't.
> The extra GDB prompt can cause random test failures.
Thanks Daniel, I've been staring at that problem for quite some time
two weeks ago but didn't spot it.
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-11-22 15:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-22 15:25 [ob] Fix gdb.stabs/weird.exp Daniel Jacobowitz
2006-11-22 15:56 ` Mark Kettenis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox