Use require with test_compiler_info
authorTom Tromey <tom@tromey.com>
Wed, 22 Feb 2023 21:53:39 +0000 (14:53 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 10 Mar 2023 15:21:46 +0000 (08:21 -0700)
One spot that checks test_compiler_info can be switched to use
'require'.

gdb/testsuite/gdb.base/vla-struct-fields.exp

index 18837303da19dcd0e095e2bad9099f042c97d5f8..62610e486ab6c4e58d104b5b279504b1fb986041 100644 (file)
 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