This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]