Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] Skip gdb.base/kill-after-signal.exp if gdb, nosignals
@ 2012-12-13 19:20 Yufeng Zhang
  2012-12-13 19:53 ` Pedro Alves
  0 siblings, 1 reply; 5+ messages in thread
From: Yufeng Zhang @ 2012-12-13 19:20 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 451 bytes --]

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.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: test-add-nosignals-check.patch --]
[-- Type: text/x-patch; name=test-add-nosignals-check.patch, Size: 535 bytes --]

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
 }

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-12-14 13:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-13 19:20 [patch] Skip gdb.base/kill-after-signal.exp if gdb, nosignals Yufeng Zhang
2012-12-13 19:53 ` Pedro Alves
2012-12-14 11:03   ` Yufeng Zhang
2012-12-14 11:25     ` Pedro Alves
2012-12-14 13:39     ` Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox