]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.base/callfuncs.exp
Use require with target_info
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / callfuncs.exp
index 9bbf108ac0edc90d0584c0d4742f20af9a0f1307..2c797a224a778ae064f0cef3e4d9744a754bbada 100644 (file)
@@ -27,10 +27,7 @@ if [support_complex_tests] {
 
 # Some targets can't do function calls, so don't even bother with this
 # test.
-if [target_info exists gdb,cannot_call_functions] {
-    unsupported "this target can not call functions"
-    return
-}
+require {!target_info exists gdb,cannot_call_functions}
 
 set allow_float_test [allow_float_test]