diff mbox

[13/14] gdb/testsuite: Skip killed-outside when nosignals

Message ID 20200207150003.8383-14-shahab.vahedi@gmail.com
State New
Headers show

Commit Message

Shahab Vahedi Feb. 7, 2020, 3 p.m. UTC
From: Anton Kolesov <Anton.Kolesov@synopsys.com>

Test "killed-outside.exp" uses "kill -9" to kill target process via PID,
something that will never work with an emdedded target has neither PID, nor is
accessible to the host "kill" utility. Skip this test if "gdb,nosignals" is
set.

gdb/testsuite/ChangeLog:
2016-08-18  Anton Kolesov <Anton.Kolesov@synopsys.com>

	* gdb.base/killed-outside.exp: Skip the test if there is
	"nosignal".

Signed-off-by: Anton Kolesov <Anton.Kolesov@synopsys.com>
---
 gdb/testsuite/gdb.base/killed-outside.exp | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

diff --git a/gdb/testsuite/gdb.base/killed-outside.exp b/gdb/testsuite/gdb.base/killed-outside.exp
index 3e20ad67ceee..abb63e1512d6 100644
--- a/gdb/testsuite/gdb.base/killed-outside.exp
+++ b/gdb/testsuite/gdb.base/killed-outside.exp
@@ -80,6 +80,11 @@  proc test {cmds_after_kill} {
     }
 }
 
+if [target_info exists gdb,nosignals] {
+    verbose "Skipping killed-outside.exp because of nosignals."
+    continue
+}
+
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile] == -1} {
     return -1
 }