aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.ada/tagged.exp
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-03-17 08:36:01 -0600
committerTom Tromey <tromey@adacore.com>2022-04-12 06:38:01 -0600
commit44a29af963e666459a7a0a8057c7282bc5ab0792 (patch)
treef1979f4676a8ee07bfe75672853598f35db7462a /gdb/testsuite/gdb.ada/tagged.exp
parent278c98c830befc706286b56da9e922e5342d62a9 (diff)
downloadfsf-binutils-gdb-44a29af963e666459a7a0a8057c7282bc5ab0792.zip
fsf-binutils-gdb-44a29af963e666459a7a0a8057c7282bc5ab0792.tar.gz
fsf-binutils-gdb-44a29af963e666459a7a0a8057c7282bc5ab0792.tar.bz2
Require GNAT debug info for some Ada tests
A few Ada tests require some debug info in the GNAT runtime. When run without this info, these tests can't pass. This patch changes these tests to detect this situation and stop with "untested".
Diffstat (limited to 'gdb/testsuite/gdb.ada/tagged.exp')
-rw-r--r--gdb/testsuite/gdb.ada/tagged.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.ada/tagged.exp b/gdb/testsuite/gdb.ada/tagged.exp
index 0e9d15f..6fb8a41 100644
--- a/gdb/testsuite/gdb.ada/tagged.exp
+++ b/gdb/testsuite/gdb.ada/tagged.exp
@@ -17,6 +17,11 @@ load_lib "ada.exp"
if { [skip_ada_tests] } { return -1 }
+if {![gnat_runtime_has_debug_info]} {
+ untested "GNAT runtime debuginfo required for this test"
+ return -1
+}
+
standard_ada_testfile foo
if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {