From: Mark Kettenis Date: Mon, 10 Feb 2014 16:58:03 +0000 (+0100) Subject: Avoid killing all processes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1dfdac3275133d51186c6b2c3910bf7043157f1b;p=binutils-gdb.git Avoid killing all processes. gdb/ChangeLog: * gdb.threads/step-after-sr-lock.exp: Avoid executing "kill -SIGUSR1 -1". --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index a9021cbbb1c..6216b2519c6 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-02-10 Mark Kettenis + + * gdb.threads/step-after-sr-lock.exp: Avoid executing + "kill -SIGUSR1 -1". + 2014-02-10 Joel Brobecker * gdb.ada/tick_length_array_enum_idx: New testcase. diff --git a/gdb/testsuite/gdb.threads/step-after-sr-lock.exp b/gdb/testsuite/gdb.threads/step-after-sr-lock.exp index 6b93d9c6598..bf5ea609ac6 100644 --- a/gdb/testsuite/gdb.threads/step-after-sr-lock.exp +++ b/gdb/testsuite/gdb.threads/step-after-sr-lock.exp @@ -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"