Skip to content

Commit ca2f51c

Browse files
committed
[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.
1 parent e7a881b commit ca2f51c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

gdb/testsuite/gdb.ada/finish-var-size.exp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ load_lib "ada.exp"
1818
require allow_ada_tests
1919

2020
# GCC 12 has the needed fix.
21-
if {![test_compiler_info {gcc-1[2-9]-*}]} {
22-
untested "GCC too told for this test"
23-
return -1
24-
}
21+
require {expr [gcc_major_version] >= 12}
2522

2623
standard_ada_testfile p
2724

0 commit comments

Comments
 (0)