2010-06-02 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
[binutils-gdb.git] / gdb / testsuite / gdb.threads / print-threads.exp
index a671479c930fcd48d0ef75ae39ab47bde77e73de..1159540443c3bca343a7167bed95dba5bc372cf6 100644 (file)
@@ -63,8 +63,7 @@ proc test_all_threads { name kill } {
 
     set i 0
     set j 0
-    send_gdb "continue\n"
-    gdb_expect {
+    gdb_test_multiple "continue" "all threads ran once" {
        -re "Breakpoint \[0-9\]+, thread_function \\(arg=.*\\) at .*print-threads.c:\[0-9\]+.*$gdb_prompt" {
            set i [expr $i + 1]
            pass "Hit thread_function breakpoint, $i ($name)"
@@ -96,12 +95,6 @@ proc test_all_threads { name kill } {
                fail "Running threads ($name) (unknown output)"
            }
        }
-       -re "$gdb_prompt" {
-           fail "Running threads ($name) (unknown output)"
-       }
-       timeout {
-           fail "Running threads ($name) (timeout)"
-       }
     }
 }