aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/cast-call.exp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-02-22 14:49:47 -0700
committerTom Tromey <tom@tromey.com>2023-03-10 08:21:46 -0700
commit450d26c851c15e08249fc0fdeb3a06b31ac4fcfd (patch)
tree828224a9e444e3e3a0ea672ddb88cad7eb4c5ef6 /gdb/testsuite/gdb.base/cast-call.exp
parent1cd0716eb199963ec63fcafa94699d14bbf45e01 (diff)
downloadgdb-450d26c851c15e08249fc0fdeb3a06b31ac4fcfd.zip
gdb-450d26c851c15e08249fc0fdeb3a06b31ac4fcfd.tar.gz
gdb-450d26c851c15e08249fc0fdeb3a06b31ac4fcfd.tar.bz2
Use require with target_info
This changes many tests to use 'require' when checking target_info. In a few spots, the require is hoisted to the top of the file, to avoid doing any extra work when the test is going to be skipped anyway.
Diffstat (limited to 'gdb/testsuite/gdb.base/cast-call.exp')
-rw-r--r--gdb/testsuite/gdb.base/cast-call.exp5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/cast-call.exp b/gdb/testsuite/gdb.base/cast-call.exp
index d80524f..7e55cd3 100644
--- a/gdb/testsuite/gdb.base/cast-call.exp
+++ b/gdb/testsuite/gdb.base/cast-call.exp
@@ -16,10 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-if {[target_info exists gdb,cannot_call_functions]} {
- unsupported "this target can not call functions"
- return
-}
+require {!target_info exists gdb,cannot_call_functions}
standard_testfile .c