]> Git Repo - binutils.git/commitdiff
2006-11-09 Vladimir Prus <[email protected]>
authorVladimir Prus <[email protected]>
Thu, 9 Nov 2006 19:31:14 +0000 (19:31 +0000)
committerVladimir Prus <[email protected]>
Thu, 9 Nov 2006 19:31:14 +0000 (19:31 +0000)
        * gdb.stabs/weird.exp (print_weird_var): Use
        gdb_test_multiple instead of gdb_expect.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.stabs/weird.exp

index 6cec3d7ce2d5e8cf9896714660587be978ef33ab..eb7c9e9712cae2384d2737353b5671e71d80181c 100644 (file)
@@ -1,3 +1,8 @@
+2006-11-09  Vladimir Prus  <[email protected]>
+
+       * gdb.stabs/weird.exp (print_weird_var): Use
+       gdb_test_multiple instead of gdb_expect.
+
 2006-11-09  Vladimir Prus  <[email protected]>
 
        * gdb.base/help.exp (help_test_raw): New.
index cff581bfe87905419b66275e57dfd5e4a914d54a..cb7c40e0674ea05a543000fe0e137413eacb0c8e 100644 (file)
@@ -228,16 +228,13 @@ proc print_weird_var { var } {
 
        # Make sure that the variable gets printed out correctly, without
        # any sort of warning message.
-       send_gdb "print $var\n"
-       gdb_expect {
+        gdb_test_multiple "print $var\n" "variable $var printed property" {  
                -re "^print $var\r*\n.\[0-9\]* = 42.*$gdb_prompt $" {
                        pass "variable $var printed properly"
                }
                -re ".*$gdb_prompt $" {
                        fail "variable $var printed properly"
                }
-               timeout { fail "variable $var printed properly (timeout)" }
-               eof { fail "variable $var printed properly (eof)" }
        }
 
        # Make sure that the stabs did get loaded in a sensible way.
This page took 0.059199 seconds and 4 git commands to generate.