diff --git a/gdb/testsuite/gdb.base/vla-struct-fields.exp b/gdb/testsuite/gdb.base/vla-struct-fields.exp
index 18837303da19dcd0e095e2bad9099f042c97d5f8..62610e486ab6c4e58d104b5b279504b1fb986041 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