aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-02-07 11:41:44 +0100
committerTom de Vries <tdevries@suse.de>2023-02-07 11:41:44 +0100
commitca2f51c6960d65c2d3adbc4095aa8a9d02759376 (patch)
tree4f65408bba1cc3dc258defbda204a60e79ae37a7
parente7a881b9d49f16bd901dba53006c48a8bfd115df (diff)
downloadgdb-ca2f51c6960d65c2d3adbc4095aa8a9d02759376.zip
gdb-ca2f51c6960d65c2d3adbc4095aa8a9d02759376.tar.gz
gdb-ca2f51c6960d65c2d3adbc4095aa8a9d02759376.tar.bz2
[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.
-rw-r--r--gdb/testsuite/gdb.ada/finish-var-size.exp5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.ada/finish-var-size.exp b/gdb/testsuite/gdb.ada/finish-var-size.exp
index c1cf640..5865be2 100644
--- a/gdb/testsuite/gdb.ada/finish-var-size.exp
+++ b/gdb/testsuite/gdb.ada/finish-var-size.exp
@@ -18,10 +18,7 @@ load_lib "ada.exp"
require allow_ada_tests
# GCC 12 has the needed fix.
-if {![test_compiler_info {gcc-1[2-9]-*}]} {
- untested "GCC too told for this test"
- return -1
-}
+require {expr [gcc_major_version] >= 12}
standard_ada_testfile p