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.python/py-inferior.exp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gdb/testsuite/gdb.python/py-inferior.exp') diff --git a/gdb/testsuite/gdb.python/py-inferior.exp b/gdb/testsuite/gdb.python/py-inferior.exp index ee6b9fc..0286d82 100644 --- a/gdb/testsuite/gdb.python/py-inferior.exp +++ b/gdb/testsuite/gdb.python/py-inferior.exp @@ -18,6 +18,8 @@ load_lib gdb-python.exp +require !skip_python_tests + standard_testfile if { [gdb_compile_pthreads ${srcdir}/${subdir}/${srcfile} ${binfile} executable {debug}] != "" } { @@ -27,9 +29,6 @@ if { [gdb_compile_pthreads ${srcdir}/${subdir}/${srcfile} ${binfile} executable # Start with a fresh gdb. clean_restart ${testfile} -# Skip all tests if Python scripting is not enabled. -if { [skip_python_tests] } { continue } - switch [get_endianness] { little { set python_pack_char "<" } big { set python_pack_char ">" } -- cgit v1.1