diff options
author | Tom Tromey <tom@tromey.com> | 2023-02-22 14:53:39 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-03-10 08:21:46 -0700 |
commit | 6349d27e30a6495830e27c64271168e921c622a0 (patch) | |
tree | 3c02ff90cba2a1fe522afac509e1d791695a32c2 /gdb | |
parent | 24d59b55a8a7405a46e99ed19fa871ba3c390aec (diff) | |
download | gdb-6349d27e30a6495830e27c64271168e921c622a0.zip gdb-6349d27e30a6495830e27c64271168e921c622a0.tar.gz gdb-6349d27e30a6495830e27c64271168e921c622a0.tar.bz2 |
Use require with test_compiler_info
One spot that checks test_compiler_info can be switched to use
'require'.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/gdb.base/vla-struct-fields.exp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/vla-struct-fields.exp b/gdb/testsuite/gdb.base/vla-struct-fields.exp index 1883730..62610e4 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 |