[30/46] Use require supports_get_siginfo_type

Message ID 20221217000818.3729389-31-tom@tromey.com
State Committed
Headers
Series Rewrite "require" test procedure and use it more often |

Commit Message

Tom Tromey Dec. 17, 2022, 12:08 a.m. UTC
  This changes some tests to use "require supports_get_siginfo_type".
---
 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(-)
  

Patch

diff --git a/gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp b/gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp
index c18c5fb0cb8..78b60900914 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 5efff68d721..af0dd315f63 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 abd328a2a78..559c999b978 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