From 79749205e72ace5dbec6f797b334c842dab1a45c Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 7 Jan 2023 12:18:59 -0700 Subject: Use "require" for Python tests This changes various tests to use "require" for the Python feature. --- gdb/testsuite/gdb.gdb/python-helper.exp | 10 ++-------- 1 file changed, 2 insertions(+), 8 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 d6c316c..3c0e2e5 100644 --- a/gdb/testsuite/gdb.gdb/python-helper.exp +++ b/gdb/testsuite/gdb.gdb/python-helper.exp @@ -24,6 +24,8 @@ if [target_info exists gdb,noinferiorio] { return } +require !skip_python_tests + standard_testfile .cc if { [build_executable "failed to build" $testfile $srcfile {debug c++}] } { @@ -38,14 +40,6 @@ if { ![file readable $py_helper_script] \ return } -# Start GDB and check that we have python support. -gdb_start -if { [skip_python_tests] } { - untested "skipped gdb-gdb.py tests due to lack of python support" - return -} -gdb_exit - # The main test. This is called by the self-test framework once GDB # has been started on a copy of itself. proc test_python_helper {} { -- cgit v1.1