projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24d59b5
)
Use require with test_compiler_info
author
Tom Tromey
<tom@tromey.com>
Wed, 22 Feb 2023 21:53:39 +0000
(14:53 -0700)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/gdb/testsuite/gdb.base/vla-struct-fields.exp
b/gdb/testsuite/gdb.base/vla-struct-fields.exp
index 18837303da19dcd0e095e2bad9099f042c97d5f8..62610e486ab6c4e58d104b5b279504b1fb986041 100644
(file)
--- 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