* [pushed] [gdb/testsuite] Improve untested message in gdb.ada/finish-var-size.exp
@ 2023-02-07 10:42 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2023-02-07 10:42 UTC (permalink / raw)
To: gdb-patches
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 | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/gdb/testsuite/gdb.ada/finish-var-size.exp b/gdb/testsuite/gdb.ada/finish-var-size.exp
index c1cf6406433..5865be249a0 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
base-commit: e7a881b9d49f16bd901dba53006c48a8bfd115df
--
2.35.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-07 10:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-07 10:42 [pushed] [gdb/testsuite] Improve untested message in gdb.ada/finish-var-size.exp Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).