[4/4] Use require with test_compiler_info

Message ID 20230224-submit-require-fixes-v1-4-7cbcbbf613c9@tromey.com
State New
Headers
Series More uses of require |

Commit Message

Tom Tromey Feb. 24, 2023, 8:28 p.m. UTC
  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(-)
  

Patch

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