summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-02-22 14:53:39 -0700
committerTom Tromey <tom@tromey.com>2023-03-10 08:21:46 -0700
commit6349d27e30a6495830e27c64271168e921c622a0 (patch)
tree3c02ff90cba2a1fe522afac509e1d791695a32c2 /gdb/testsuite/gdb.base
parent24d59b55a8a7405a46e99ed19fa871ba3c390aec (diff)
downloadbinutils-gdb-6349d27e30a6495830e27c64271168e921c622a0.tar.gz
Use require with test_compiler_info
One spot that checks test_compiler_info can be switched to use 'require'.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/vla-struct-fields.exp5
1 files changed, 1 insertions, 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