aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-06-06 18:34:53 +0000
committerMichael Snyder <msnyder@vmware.com>2001-06-06 18:34:53 +0000
commitda55addb08b0a3e9331d109997fedf3bcb8361be (patch)
treeea74bd83026d2a3f5da2db4456f5ff0f8f0e36e9
parentb18bced9af7578844225bf25083370c58ce5303d (diff)
downloadbinutils-da55addb08b0a3e9331d109997fedf3bcb8361be.zip
binutils-da55addb08b0a3e9331d109997fedf3bcb8361be.tar.gz
binutils-da55addb08b0a3e9331d109997fedf3bcb8361be.tar.bz2
2001-06-04 Michael Snyder <msnyder@redhat.com>
* gdb.threads/pthreads.exp (check_control_c): Return 0 for success, non-zero if control_c fails. Terminate the test on failure, rather than wait for 12 more tests to time out.
-rw-r--r--gdb/testsuite/ChangeLog6
-rw-r--r--gdb/testsuite/gdb.threads/pthreads.exp7
2 files changed, 12 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 9f539da..a421808 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2001-06-04 Michael Snyder <msnyder@redhat.com>
+
+ * gdb.threads/pthreads.exp (check_control_c): Return 0 for success,
+ non-zero if control_c fails. Terminate the test on failure,
+ rather than wait for 12 more tests to time out.
+
2001-06-06 Jim Blandy <jimb@redhat.com>
* gdb.base/exprs.exp ("sizeof (long long) > sizeof (long) (true)"):
diff --git a/gdb/testsuite/gdb.threads/pthreads.exp b/gdb/testsuite/gdb.threads/pthreads.exp
index 00140b6..e57583b 100644
--- a/gdb/testsuite/gdb.threads/pthreads.exp
+++ b/gdb/testsuite/gdb.threads/pthreads.exp
@@ -259,6 +259,7 @@ proc check_control_c {} {
}
timeout {
fail "$description (timeout)"
+ return 1;
}
}
gdb_test "bt" ""
@@ -267,6 +268,7 @@ proc check_control_c {} {
if [all_threads_running] then {
pass "All threads running after continuing from ^C stop"
}
+ return 0;
}
proc check_backtraces {} {
@@ -337,7 +339,10 @@ setup_xfail "alpha-*-osf*"
if [runto_main] then {
clear_xfail "alpha-*-osf*"
if [test_startup] then {
- check_control_c
+ if [check_control_c] then {
+ warning "Could not stop child with ^C; skipping rest of tests.\n"
+ return;
+ }
check_backtraces
}
}