Use "require" for Python tests

This changes various tests to use "require" for the Python feature.
This commit is contained in:
Tom Tromey
2023-01-07 12:18:59 -07:00
parent d394684d55
commit 79749205e7
100 changed files with 170 additions and 374 deletions

View File

@ -15,15 +15,14 @@
load_lib gdb-python.exp
require !skip_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
return -1
}
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
if {![runto_main]} {
return 0
}