Use require supports_get_siginfo_type
authorTom Tromey <tom@tromey.com>
Wed, 14 Dec 2022 16:52:45 +0000 (09:52 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 13 Jan 2023 20:18:56 +0000 (13:18 -0700)
This changes some tests to use "require supports_get_siginfo_type".

gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp
gdb/testsuite/gdb.base/siginfo-obj.exp
gdb/testsuite/gdb.base/siginfo-thread.exp

index 25c681f0a6a70ead5c9fabc5396d3d59506cab9f..182b2f25faacab998ec0e2c7b5fdc404e4f7517e 100644 (file)
@@ -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
 
index f641160634691021e76239070e9148759f7794e3..9d8bfe757314849cf636c275b62a117436baf4b0 100644 (file)
@@ -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
index b40b23a6def4bc44dcbeb7032583e322c8e6dde6..718889fcc4736724b1bc7cf4a16f68bb0576fe30 100644 (file)
@@ -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