From 6349d27e30a6495830e27c64271168e921c622a0 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 22 Feb 2023 14:53:39 -0700 Subject: [PATCH] Use require with test_compiler_info One spot that checks test_compiler_info can be switched to use 'require'. --- 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 -- 2.30.2