aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-breakpoint.exp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-07 12:18:59 -0700
committerTom Tromey <tom@tromey.com>2023-01-13 13:18:57 -0700
commit79749205e72ace5dbec6f797b334c842dab1a45c (patch)
tree76be7dd8801f292c2e4ed8bc0e9362a73fb79cce /gdb/testsuite/gdb.python/py-breakpoint.exp
parentd394684d5531ea85fc347d68910bed858880f2e0 (diff)
downloadbinutils-79749205e72ace5dbec6f797b334c842dab1a45c.zip
binutils-79749205e72ace5dbec6f797b334c842dab1a45c.tar.gz
binutils-79749205e72ace5dbec6f797b334c842dab1a45c.tar.bz2
Use "require" for Python tests
This changes various tests to use "require" for the Python feature.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-breakpoint.exp')
-rw-r--r--gdb/testsuite/gdb.python/py-breakpoint.exp5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.python/py-breakpoint.exp b/gdb/testsuite/gdb.python/py-breakpoint.exp
index 49c0979..0995ae4 100644
--- a/gdb/testsuite/gdb.python/py-breakpoint.exp
+++ b/gdb/testsuite/gdb.python/py-breakpoint.exp
@@ -26,6 +26,8 @@ set skip_hw_watchpoint_tests_p [skip_hw_watchpoint_tests]
load_lib gdb-python.exp
+require !skip_python_tests
+
standard_testfile
set options {debug c++}
@@ -34,9 +36,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} ${options}]
return -1
}
-# Skip all tests if Python scripting is not enabled.
-if { [skip_python_tests] } { continue }
-
proc_with_prefix test_bkpt_basic { } {
global srcfile testfile hex decimal