]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Require gnatmake 11 for gdb.ada/verylong.exp
authorTom de Vries <tdevries@suse.de>
Wed, 29 Mar 2023 14:09:44 +0000 (16:09 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 29 Mar 2023 14:09:44 +0000 (16:09 +0200)
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.

gdb/testsuite/gdb.ada/verylong.exp

index 93df785862b426bb962e1fd91c7d24f35a3a6a6a..498ab6d88beff3288d0e1bbd62924cade84ac19a 100644 (file)
@@ -16,6 +16,7 @@
 load_lib "ada.exp"
 
 require allow_ada_tests
+require {gnatmake_version_at_least 11}
 
 standard_ada_testfile prog