* [committed][gdb/testsuite] Require gnatmake-8 for gdb.ada/mi_prot.exp
@ 2020-07-24 12:11 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2020-07-24 12:11 UTC (permalink / raw)
To: gdb-patches; +Cc: Joel Brobecker, Tom Tromey
Hi,
With gcc-7, I run into:
...
gcc -c -I./ -gnata -Isrc/gdb/testsuite/gdb.ada/mi_prot -g -lm -I- \
src/gdb/testsuite/gdb.ada/mi_prot/prot.adb^M
prot.adb:21:04: info: "Obj_Type" is frozen here, aspects evaluated at this \
point^M
prot.adb:23:09: visibility of aspect for "Obj_Type" changes after freeze \
point^M
gnatmake: "src/gdb/testsuite/gdb.ada/mi_prot/prot.adb" compilation error^M
compiler exited with status 1
...
FAIL: gdb.ada/mi_prot.exp: compilation prot.adb
...
Fix this by requiring gnatmake-8 for this test-case.
Tested on x86_64-linux, with gnatmake-7, gnatmake-8 and gnatmake-11.
Committed to trunk.
Thanks,
- Tom
[gdb/testsuite] Require gnatmake-8 for gdb.ada/mi_prot.exp
gdb/testsuite/ChangeLog:
2020-07-24 Tom de Vries <tdevries@suse.de>
PR testsuite/26293
* gdb.ada/mi_prot.exp: Require gnatmake-8.
---
gdb/testsuite/gdb.ada/mi_prot.exp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gdb/testsuite/gdb.ada/mi_prot.exp b/gdb/testsuite/gdb.ada/mi_prot.exp
index 852e3524ea..f3b5b9c662 100644
--- a/gdb/testsuite/gdb.ada/mi_prot.exp
+++ b/gdb/testsuite/gdb.ada/mi_prot.exp
@@ -15,6 +15,9 @@
load_lib "ada.exp"
+if { ![gnatmake_version_at_least 8] } {
+ return -1
+}
standard_ada_testfile prot
if {[gdb_compile_ada "${srcfile}" "${binfile}" executable \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-24 12:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-24 12:11 [committed][gdb/testsuite] Require gnatmake-8 for gdb.ada/mi_prot.exp Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox