public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Don't test interface.exp without GNAT debug info
@ 2022-03-17 14:39 Tom Tromey
  2022-03-20  6:02 ` Joel Brobecker
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2022-03-17 14:39 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

The test gdb.ada/interface.exp requires some debug info in the GNAT
runtime.  When run without this info, the test can't pass.  This patch
changes the test to detect this situation and stop the test with
"untested".
---
 gdb/testsuite/gdb.ada/interface.exp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gdb/testsuite/gdb.ada/interface.exp b/gdb/testsuite/gdb.ada/interface.exp
index 834da12b153..06b9660113b 100644
--- a/gdb/testsuite/gdb.ada/interface.exp
+++ b/gdb/testsuite/gdb.ada/interface.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 additional_flags=-gnat05 ]] != "" } {
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-10 19:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-17 14:39 [PATCH] Don't test interface.exp without GNAT debug info Tom Tromey
2022-03-20  6:02 ` Joel Brobecker
2022-03-28 12:42   ` Tom Tromey
2022-04-10 19:13     ` Joel Brobecker

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).