public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Tom Tromey <tromey@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] Use require supports_get_siginfo_type
Date: Fri, 13 Jan 2023 20:36:23 +0000 (GMT)	[thread overview]
Message-ID: <20230113203623.548C63858425@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5f3ef82813891f87dc1d34453e3f0ddc045b30f8

commit 5f3ef82813891f87dc1d34453e3f0ddc045b30f8
Author: Tom Tromey <tom@tromey.com>
Date:   Wed Dec 14 09:52:45 2022 -0700

    Use require supports_get_siginfo_type
    
    This changes some tests to use "require supports_get_siginfo_type".

Diff:
---
 gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp | 5 +----
 gdb/testsuite/gdb.base/siginfo-obj.exp               | 5 +----
 gdb/testsuite/gdb.base/siginfo-thread.exp            | 5 +----
 3 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp b/gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp
index 25c681f0a6a..182b2f25faa 100644
--- a/gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp
+++ b/gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp
@@ -30,10 +30,7 @@ if [target_info exists gdb,nosignals] {
     return -1
 }
 
-if { ![supports_get_siginfo_type] } {
-    verbose "Skipping catch-signal-siginfo-cond.exp because of lack of support."
-    return -1
-}
+require supports_get_siginfo_type
 
 standard_testfile
 
diff --git a/gdb/testsuite/gdb.base/siginfo-obj.exp b/gdb/testsuite/gdb.base/siginfo-obj.exp
index f6411606346..9d8bfe75731 100644
--- a/gdb/testsuite/gdb.base/siginfo-obj.exp
+++ b/gdb/testsuite/gdb.base/siginfo-obj.exp
@@ -26,10 +26,7 @@ if [target_info exists gdb,nosignals] {
     return
 }
 
-if { ![supports_get_siginfo_type] } {
-    verbose "Skipping siginfo-obj.exp because of lack of support."
-    return
-}
+require supports_get_siginfo_type
 
 
 standard_testfile
diff --git a/gdb/testsuite/gdb.base/siginfo-thread.exp b/gdb/testsuite/gdb.base/siginfo-thread.exp
index b40b23a6def..718889fcc47 100644
--- a/gdb/testsuite/gdb.base/siginfo-thread.exp
+++ b/gdb/testsuite/gdb.base/siginfo-thread.exp
@@ -21,10 +21,7 @@ if [target_info exists gdb,nosignals] {
     return
 }
 
-if { ![supports_get_siginfo_type] } {
-    verbose "Skipping siginfo-thread.exp because of lack of support."
-    return
-}
+require supports_get_siginfo_type
 
 standard_testfile .c

                 reply	other threads:[~2023-01-13 20:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230113203623.548C63858425@sourceware.org \
    --to=tromey@sourceware.org \
    --cc=gdb-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).