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 a9021cbbb1c8f8a56f8115658110c4c7faac673e..6216b2519c650a8a6f7aa3896090c9d4af93363d 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 6b93d9c6598565cb8650603fed7cd03f80f28175..bf5ea609ac699eaefce0657ba65b7aa382f773f1 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"