Use require gnat_runtime_has_debug_info
authorTom Tromey <tom@tromey.com>
Fri, 16 Dec 2022 00:58:40 +0000 (17:58 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 13 Jan 2023 20:18:56 +0000 (13:18 -0700)
This changes some tests to use "require gnat_runtime_has_debug_info".

gdb/testsuite/gdb.ada/dynamic-iface.exp
gdb/testsuite/gdb.ada/interface.exp
gdb/testsuite/gdb.ada/iwide.exp
gdb/testsuite/gdb.ada/mi_interface.exp
gdb/testsuite/gdb.ada/tagged.exp
gdb/testsuite/gdb.ada/tagged_access.exp

index 13e939668192f5a49fbb975428fc4bd7ca5da19d..d4d7ba45ab4b34025b811862d1509ac97670806b 100644 (file)
@@ -17,10 +17,7 @@ load_lib "ada.exp"
 
 require !skip_ada_tests
 
-if {![gnat_runtime_has_debug_info]} {
-    untested "GNAT runtime debuginfo required for this test"
-    return -1
-}
+require gnat_runtime_has_debug_info
 
 standard_ada_testfile main
 
index c1b2bf87e152dc91d79bfc03525def527f9f05fa..93a0bd5e8b642704d7d9f32401a0eedbe9f2a5b4 100644 (file)
@@ -17,10 +17,7 @@ load_lib "ada.exp"
 
 require !skip_ada_tests
 
-if {![gnat_runtime_has_debug_info]} {
-    untested "GNAT runtime debuginfo required for this test"
-    return -1
-}
+require gnat_runtime_has_debug_info
 
 standard_ada_testfile foo
 
index 89386c5a851124aca3c2e4002c3ba73e9fe9cec7..40c45d881170ba87f5a50206eeab793150f776bb 100644 (file)
@@ -17,10 +17,7 @@ load_lib "ada.exp"
 
 require !skip_ada_tests
 
-if {![gnat_runtime_has_debug_info]} {
-    untested "GNAT runtime debuginfo required for this test"
-    return -1
-}
+require gnat_runtime_has_debug_info
 
 standard_ada_testfile p
 
index 88829faf457ca6f8d5e0f319863b39b81932fc14..50e6df7851fa0196de98c52e10e38aebbc620fff 100644 (file)
@@ -17,10 +17,7 @@ load_lib "ada.exp"
 
 require !skip_ada_tests
 
-if {![gnat_runtime_has_debug_info]} {
-    untested "GNAT runtime debuginfo required for this test"
-    return -1
-}
+require gnat_runtime_has_debug_info
 
 standard_ada_testfile foo
 
index bbefa8d966d56b7928a3d6b0c1cb201ba1c38941..319252922afebea763ce4637e0befa4bb723b84c 100644 (file)
@@ -17,10 +17,7 @@ load_lib "ada.exp"
 
 require !skip_ada_tests
 
-if {![gnat_runtime_has_debug_info]} {
-    untested "GNAT runtime debuginfo required for this test"
-    return -1
-}
+require gnat_runtime_has_debug_info
 
 standard_ada_testfile foo
 
index 17e5f6d971eea3289b628f8ff5af492849e25ccf..69eb6702b25533fbc599262c88a4491b8c1a6ccc 100644 (file)
@@ -17,10 +17,7 @@ load_lib "ada.exp"
 
 require !skip_ada_tests
 
-if {![gnat_runtime_has_debug_info]} {
-    untested "GNAT runtime debuginfo required for this test"
-    return -1
-}
+require gnat_runtime_has_debug_info
 
 standard_ada_testfile p