Avoid killing all processes.
authorMark Kettenis <kettenis@gnu.org>
Mon, 10 Feb 2014 16:58:03 +0000 (17:58 +0100)
committerMark Kettenis <kettenis@gnu.org>
Mon, 10 Feb 2014 17:07:12 +0000 (18:07 +0100)
gdb/ChangeLog:

        * gdb.threads/step-after-sr-lock.exp: Avoid executing
        "kill -SIGUSR1 -1".

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/step-after-sr-lock.exp

index a9021cb..6216b25 100644 (file)
@@ -1,3 +1,8 @@
+2014-02-10  Mark Kettenis  <kettenis@gnu.org>
+
+       * gdb.threads/step-after-sr-lock.exp: Avoid executing
+       "kill -SIGUSR1 -1".
+
 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
 
        * gdb.ada/tick_length_array_enum_idx: New testcase.
index 6b93d9c..bf5ea60 100644 (file)
@@ -68,6 +68,9 @@ gdb_continue_to_breakpoint "run to breakpoint"
 gdb_test "info threads" "" "info threads with thread 3"
 
 set testpid [get_value "pid" "get pid of inferior"]
+if { $testpid == -1 } {
+    return -1
+}
 
 gdb_test "set scheduler-locking on"