From 450d26c851c15e08249fc0fdeb3a06b31ac4fcfd Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 22 Feb 2023 14:49:47 -0700 Subject: 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. --- gdb/testsuite/gdb.gdb/python-helper.exp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gdb/testsuite/gdb.gdb') diff --git a/gdb/testsuite/gdb.gdb/python-helper.exp b/gdb/testsuite/gdb.gdb/python-helper.exp index 16b4199..dbd78cb 100644 --- a/gdb/testsuite/gdb.gdb/python-helper.exp +++ b/gdb/testsuite/gdb.gdb/python-helper.exp @@ -19,10 +19,7 @@ load_lib selftest-support.exp -if [target_info exists gdb,noinferiorio] { - verbose "Skipping because of no inferiorio capabilities." - return -} +require {!target_info exists gdb,noinferiorio} require allow_python_tests -- cgit v1.1