public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Use require with test_compiler_info
@ 2023-03-10 15:22 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2023-03-10 15:22 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6349d27e30a6495830e27c64271168e921c622a0
commit 6349d27e30a6495830e27c64271168e921c622a0
Author: Tom Tromey <tom@tromey.com>
Date: Wed Feb 22 14:53:39 2023 -0700
Use require with test_compiler_info
One spot that checks test_compiler_info can be switched to use
'require'.
Diff:
---
gdb/testsuite/gdb.base/vla-struct-fields.exp | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/gdb/testsuite/gdb.base/vla-struct-fields.exp b/gdb/testsuite/gdb.base/vla-struct-fields.exp
index 18837303da1..62610e486ab 100644
--- a/gdb/testsuite/gdb.base/vla-struct-fields.exp
+++ b/gdb/testsuite/gdb.base/vla-struct-fields.exp
@@ -16,10 +16,7 @@
standard_testfile
# Clang says it will never support variable length arrays in structures.
-if {[test_compiler_info clang*]} {
- unsupported "compiler does not support variable length arrays in structure"
- return
-}
+require {!test_compiler_info clang*}
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
return -1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-10 15:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-10 15:22 [binutils-gdb] Use require with test_compiler_info Tom Tromey
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).