[gdb/testsuite] Improve untested message in gdb.ada/finish-var-size.exp
authorTom de Vries <tdevries@suse.de>
Tue, 7 Feb 2023 10:41:44 +0000 (11:41 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 7 Feb 2023 10:41:44 +0000 (11:41 +0100)
commitca2f51c6960d65c2d3adbc4095aa8a9d02759376
tree4f65408bba1cc3dc258defbda204a60e79ae37a7
parente7a881b9d49f16bd901dba53006c48a8bfd115df
[gdb/testsuite] Improve untested message in gdb.ada/finish-var-size.exp

I came across:
...
UNTESTED: gdb.ada/finish-var-size.exp: GCC too told for this test
...
The message only tells us that the compiler version too old, not what compiler
version is required.

Fix this by rewriting using required:
...
UNSUPPORTED: gdb.ada/finish-var-size.exp: require failed: \
  expr [gcc_major_version] >= 12
...

Tested on x86_64-linux.
gdb/testsuite/gdb.ada/finish-var-size.exp