This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] Skip gdb.base/kill-after-signal.exp if gdb, nosignals
- From: Yufeng Zhang <Yufeng dot Zhang at arm dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Thu, 13 Dec 2012 19:20:19 +0000
- Subject: [patch] Skip gdb.base/kill-after-signal.exp if gdb, nosignals
Hi,
This patch adds check to gdb.base/kill-after-signal.exp to skip the test
if the board has no support for signals, which is the case in most
baremetal environment. This patch follows the existing practice as what
had been done to gdb.base/signull.exp,sigbpt.exp,etc.
Is it OK?
Thanks,
Yufeng
testsuite/
2012-12-13 Yufeng Zhang <yufeng.zhang@arm.com>
* gdb.base/kill-after-signal.exp: Disable if gdb,nosignals.diff --git a/gdb/testsuite/gdb.base/kill-after-signal.exp b/gdb/testsuite/gdb.base/kill-after-signal.exp
index 7b70510..91eec2d 100644
--- a/gdb/testsuite/gdb.base/kill-after-signal.exp
+++ b/gdb/testsuite/gdb.base/kill-after-signal.exp
@@ -20,6 +20,11 @@ if { ![can_single_step_to_signal_handler] } {
return
}
+if [target_info exists gdb,nosignals] {
+ verbose "Skipping kill-after-signal.exp because of nosignals."
+ continue
+}
+
if [prepare_for_testing ${testfile}.exp ${testfile}] {
return -1
}