| Index: gdb/testsuite/gdb.base/random-signal.exp
|
| diff --git a/gdb/testsuite/gdb.threads/sigthread.exp b/gdb/testsuite/gdb.base/random-signal.exp
|
| similarity index 64%
|
| copy from gdb/testsuite/gdb.threads/sigthread.exp
|
| copy to gdb/testsuite/gdb.base/random-signal.exp
|
| index 7e9fb0644e017225efa5d16dc655d1ed8c8fa874..bd235137189e08126619b77867ac673308c0b567 100644
|
| --- a/gdb/testsuite/gdb.threads/sigthread.exp
|
| +++ b/gdb/testsuite/gdb.base/random-signal.exp
|
| @@ -1,5 +1,4 @@
|
| -# sigthread.exp -- Expect script to test thread and signal interaction
|
| -# Copyright (C) 2007-2012 Free Software Foundation, Inc.
|
| +# Copyright 2013 Free Software Foundation, Inc.
|
|
|
| # This program is free software; you can redistribute it and/or modify
|
| # it under the terms of the GNU General Public License as published by
|
| @@ -12,25 +11,25 @@
|
| # GNU General Public License for more details.
|
| #
|
| # You should have received a copy of the GNU General Public License
|
| -# along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
| +# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
| +
|
| +if [target_info exists gdb,nosignals] {
|
| + verbose "Skipping catch-signal.exp because of nosignals."
|
| + continue
|
| +}
|
|
|
| standard_testfile
|
|
|
| -if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
|
| - executable { debug }] != "" } {
|
| +if {[prepare_for_testing $testfile.exp $testfile $srcfile debug]} {
|
| return -1
|
| }
|
|
|
| -clean_restart ${binfile}
|
| -
|
| -if ![runto_main] then {
|
| - fail "Can't run to main"
|
| - return 0
|
| +if {![runto_main]} {
|
| + return -1
|
| }
|
|
|
| -gdb_test "handle SIGUSR1 nostop noprint pass"
|
| -gdb_test "handle SIGUSR2 nostop noprint pass"
|
| -
|
| +gdb_test_no_output "set can-use-hw-watchpoints 0"
|
| +gdb_test "watch v" "Watchpoint .*"
|
| gdb_test_multiple "continue" "continue" {
|
| -re "Continuing" {
|
| pass "continue"
|
| @@ -40,7 +39,4 @@ gdb_test_multiple "continue" "continue" {
|
| # For this to work we must be sure to consume the "Continuing."
|
| # message first, or GDB's signal handler may not be in place.
|
| after 500 {send_gdb "\003"}
|
| -
|
| -# Make sure we do not get an internal error from hitting Control-C
|
| -# while many signals are flying back and forth.
|
| gdb_test "" "Program received signal SIGINT.*" "stop with control-c"
|
|
|