Index: gdb/testsuite/gdb.threads/clone-new-thread-event.exp |
diff --git a/gdb/testsuite/gdb.threads/current-lwp-dead.exp b/gdb/testsuite/gdb.threads/clone-new-thread-event.exp |
similarity index 66% |
copy from gdb/testsuite/gdb.threads/current-lwp-dead.exp |
copy to gdb/testsuite/gdb.threads/clone-new-thread-event.exp |
index fe6cd9a465166d33171da383627f559eb55a16a2..061f2c0e812dcd6578aaff03ca6b5cf6639081c2 100644 |
--- a/gdb/testsuite/gdb.threads/current-lwp-dead.exp |
+++ b/gdb/testsuite/gdb.threads/clone-new-thread-event.exp |
@@ -1,6 +1,6 @@ |
# This testcase is part of GDB, the GNU debugger. |
-# Copyright 2009-2012 Free Software Foundation, Inc. |
+# Copyright 2012 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 |
@@ -15,22 +15,20 @@ |
# You should have received a copy of the GNU General Public License |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
-# Please email any bugs, comments, and/or additions to this file to: |
-# bug-gdb@gnu.org |
- |
-# This only works with on Linux targets. |
+# This only works on targets with the Linux kernel. |
if ![istarget *-*-linux*] then { |
return |
} |
-if { [prepare_for_testing current-lwp-dead.exp current-lwp-dead] } { |
+if { [prepare_for_testing clone-new-thread-event.exp clone-new-thread-event] } { |
return -1 |
} |
-if {[runto_main] <= 0} { |
- untested current-lwp-dead.exp |
+if { ![runto_main] } { |
+ untested "could not run to main" |
return -1 |
} |
-gdb_breakpoint "fn_return" |
-gdb_continue_to_breakpoint "fn_return" ".*at-fn_return.*" |
+gdb_test "continue" \ |
+ "Program received signal SIGUSR1, User defined signal 1.*" \ |
+ "catch SIGUSR1" |