Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [commit] Properly anchor gdb_test_multiple in bfp-test.exp
@ 2005-10-31 18:16 kettenis
  2005-11-01  9:44 ` Wu Zhou
  0 siblings, 1 reply; 3+ messages in thread
From: kettenis @ 2005-10-31 18:16 UTC (permalink / raw)
  To: gdb-patches

Committed as obvious.

Mark

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* gdb.base/bfp-test.exp: Properly anchor gdb_multiple_test usage.

Index: gdb.base/bfp-test.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/bfp-test.exp,v
retrieving revision 1.1
diff -u -p -r1.1 bfp-test.exp
--- gdb.base/bfp-test.exp 20 Sep 2005 09:01:14 -0000 1.1
+++ gdb.base/bfp-test.exp 31 Oct 2005 15:59:30 -0000
@@ -59,7 +59,7 @@ gdb_test_multiple "set var b32=10.5f" "$
     -re "$gdb_prompt $" {
 	pass "$test"
     }
-    -re "Invalid number" {
+    -re "Invalid number.*$gdb_prompt $" {
 	fail "$test (do not recognize 10.5f)"
     }
 }
@@ -69,7 +69,7 @@ gdb_test_multiple "set var b64=20.25f" "
     -re "$gdb_prompt $" {
 	pass "$test"
     }
-    -re "Invalid number" {
+    -re "Invalid number.*$gdb_prompt $" {
 	fail "$test (do not recognize 20.25f)"
     }
 }
@@ -79,7 +79,7 @@ gdb_test_multiple "set var b128=30.375l"
     -re "$gdb_prompt $" {
 	pass "$test"
     }
-    -re "Invalid number" {
+    -re "Invalid number.*$gdb_prompt $" {
 	fail "$test (do not recognize 30.375l)"
     }
 }
@@ -92,7 +92,7 @@ gdb_test "print b128" ".*9 = 30\.375.*" 
 
 set test "set variable b32 = 100.5a"
 gdb_test_multiple "set var b32=100.5a" "$test" {
-    -re "Invalid number" {
+    -re "Invalid number.*$gdb_prompt $" {
 	pass "$test"
     }
     -re "$gdb_prompt $" {
@@ -102,7 +102,7 @@ gdb_test_multiple "set var b32=100.5a" "
 
 set test "set variable b64 = 200.25x"
 gdb_test_multiple "set var b64=200.25x" "$test" {
-    -re "Invalid number" {
+    -re "Invalid number.*$gdb_prompt $" {
 	pass "$test"
     }
     -re "$gdb_prompt $" {
@@ -112,7 +112,7 @@ gdb_test_multiple "set var b64=200.25x" 
 
 set test "set variable b128 = 300.375fl"
 gdb_test_multiple "set var b128=300.375fl" "$test" {
-    -re "Invalid number" {
+    -re "Invalid number.*$gdb_prompt $" {
 	pass "$test"
     }
     -re "$gdb_prompt $" {
@@ -122,7 +122,7 @@ gdb_test_multiple "set var b128=300.375f
 
 set test "set variable b128 = 300.375fff"
 gdb_test_multiple "set var b128=300.375fff" "$test" {
-    -re "Invalid number" {
+    -re "Invalid number.*$gdb_prompt $" {
 	pass "$test"
     }
     -re "$gdb_prompt $" {


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

* Re: [commit] Properly anchor gdb_test_multiple in bfp-test.exp
  2005-10-31 18:16 [commit] Properly anchor gdb_test_multiple in bfp-test.exp kettenis
@ 2005-11-01  9:44 ` Wu Zhou
  2005-11-01 13:55   ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Wu Zhou @ 2005-11-01  9:44 UTC (permalink / raw)
  To: kettenis; +Cc: gdb-patches

Thanks, Kettenis.  I had one question though.

On Mon, 31 Oct 2005, kettenis@gnu.org wrote:

[snip]

> -    -re "Invalid number" {
> +    -re "Invalid number.*$gdb_prompt $" {

Could this used in gdb_test?  When I used it in gdb_test, it always report 
FAIL.

Regards
- Wu Zhou


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

* Re: [commit] Properly anchor gdb_test_multiple in bfp-test.exp
  2005-11-01  9:44 ` Wu Zhou
@ 2005-11-01 13:55   ` Daniel Jacobowitz
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2005-11-01 13:55 UTC (permalink / raw)
  To: Wu Zhou; +Cc: kettenis, gdb-patches

On Tue, Nov 01, 2005 at 05:47:49PM +0800, Wu Zhou wrote:
> Thanks, Kettenis.  I had one question though.
> 
> On Mon, 31 Oct 2005, kettenis@gnu.org wrote:
> 
> [snip]
> 
> > -    -re "Invalid number" {
> > +    -re "Invalid number.*$gdb_prompt $" {
> 
> Could this used in gdb_test?  When I used it in gdb_test, it always report 
> FAIL.

Correct.  You have to anchor for gdb_expect and gdb_test_multiple, but
not gdb_test.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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

end of thread, other threads:[~2005-11-01 13:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-31 18:16 [commit] Properly anchor gdb_test_multiple in bfp-test.exp kettenis
2005-11-01  9:44 ` Wu Zhou
2005-11-01 13:55   ` Daniel Jacobowitz

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