[binutils-gdb] [gdb/testsuite] Require gnatmake 11 for gdb.ada/verylong.exp
Tom de Vries
vries@sourceware.org
Wed Mar 29 14:09:50 GMT 2023
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f6424be55482c4e8e6d482e04f1fb8408191d702
commit f6424be55482c4e8e6d482e04f1fb8408191d702
Author: Tom de Vries <tdevries@suse.de>
Date: Wed Mar 29 16:09:44 2023 +0200
[gdb/testsuite] Require gnatmake 11 for gdb.ada/verylong.exp
With test-case gdb.ada/verylong.exp and gnatmake 7.5.0 I run into:
...
compilation failed: gcc ... $src/gdb/testsuite/gdb.ada/verylong/prog.adb
prog.adb:16:11: warning: file name does not match unit name, should be "main.adb"
prog.adb:17:08: "Long_Long_Long_Integer" is undefined (more references follow)
gnatmake: "prog.adb" compilation error
FAIL: gdb.ada/verylong.exp: compilation prog.adb
...
AFAICT, support for Long_Long_Long_Integer was added in gcc 11.
Fix this by requiring gnatmake version 11 or higher in the test-case.
Tested on x86_64-linux.
Diff:
---
gdb/testsuite/gdb.ada/verylong.exp | 1 +
1 file changed, 1 insertion(+)
diff --git a/gdb/testsuite/gdb.ada/verylong.exp b/gdb/testsuite/gdb.ada/verylong.exp
index 93df785862b..498ab6d88be 100644
--- a/gdb/testsuite/gdb.ada/verylong.exp
+++ b/gdb/testsuite/gdb.ada/verylong.exp
@@ -16,6 +16,7 @@
load_lib "ada.exp"
require allow_ada_tests
+require {gnatmake_version_at_least 11}
standard_ada_testfile prog
More information about the Gdb-cvs
mailing list