aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2020-07-24 14:10:50 +0200
committerTom de Vries <tdevries@suse.de>2020-07-24 14:10:50 +0200
commit6dcfb80a28a571999a8cf2346bfc4665d56912ae (patch)
treed7f27c0d29aa8b9746d15a6b9e5a2777519ba1d6
parentbf772a1ecd50bd6498dcf1fe20ae71992a651088 (diff)
downloadfsf-binutils-gdb-6dcfb80a28a571999a8cf2346bfc4665d56912ae.zip
fsf-binutils-gdb-6dcfb80a28a571999a8cf2346bfc4665d56912ae.tar.gz
fsf-binutils-gdb-6dcfb80a28a571999a8cf2346bfc4665d56912ae.tar.bz2
[gdb/testsuite] Require gnatmake-8 for gdb.ada/mi_prot.exp
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. gdb/testsuite/ChangeLog: 2020-07-24 Tom de Vries <tdevries@suse.de> PR testsuite/26293 * gdb.ada/mi_prot.exp: Require gnatmake-8.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.ada/mi_prot.exp3
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 9ccc794..29f940e 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2020-07-24 Tom de Vries <tdevries@suse.de>
+
+ PR testsuite/26293
+ * gdb.ada/mi_prot.exp: Require gnatmake-8.
+
2020-07-23 Pedro Alves <pedro@palves.net>
* gdb.server/server-kill.exp (prepare): New, factored out from the
diff --git a/gdb/testsuite/gdb.ada/mi_prot.exp b/gdb/testsuite/gdb.ada/mi_prot.exp
index 852e352..f3b5b9c 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 \