2011-05-04 Janis Johnson * gdb.threads/manythreads.exp: Bail out after an error that indicates the test might have further errors. * gdb.threads/staticthreads.exp: Bail out after a timeout that indicates the test might have further timeouts. Index: testsuite/gdb.threads/manythreads.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/manythreads.exp,v retrieving revision 1.22 diff -u -p -r1.22 manythreads.exp --- testsuite/gdb.threads/manythreads.exp 19 Jan 2011 17:21:39 -0000 1.22 +++ testsuite/gdb.threads/manythreads.exp 4 May 2011 17:34:16 -0000 @@ -97,6 +97,11 @@ gdb_test_multiple $cmd $cmd { fail $cmd } } + eof { + fail "$cmd (Process no longer exists)" + fail "Remainder of test" + return + } } gdb_test_no_output "thread name zardoz" "give a name to the thread" Index: testsuite/gdb.threads/staticthreads.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/staticthreads.exp,v retrieving revision 1.13 diff -u -p -r1.13 staticthreads.exp --- testsuite/gdb.threads/staticthreads.exp 1 Jan 2011 15:33:50 -0000 1.13 +++ testsuite/gdb.threads/staticthreads.exp 4 May 2011 17:34:16 -0000 @@ -54,6 +54,12 @@ gdb_test_multiple "continue" "$test" { -re "Program received signal .*$gdb_prompt " { kfail gdb/1328 "$test" } + timeout { + # A timeout here often indicates more timeouts later in the test. + fail "$test (timeout)" + fail "Remainder of test" + return + } }