From: Tom Tromey Date: Wed, 22 Feb 2023 21:53:39 +0000 (-0700) Subject: Use require with test_compiler_info X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6349d27e30a6495830e27c64271168e921c622a0;p=binutils-gdb.git Use require with test_compiler_info One spot that checks test_compiler_info can be switched to use 'require'. --- 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