aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-record-btrace-threads.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-record-btrace-threads.exp
parentd394684d5531ea85fc347d68910bed858880f2e0 (diff)
downloadgdb-79749205e72ace5dbec6f797b334c842dab1a45c.zip
gdb-79749205e72ace5dbec6f797b334c842dab1a45c.tar.gz
gdb-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-record-btrace-threads.exp')
-rw-r--r--gdb/testsuite/gdb.python/py-record-btrace-threads.exp12
1 files changed, 2 insertions, 10 deletions
diff --git a/gdb/testsuite/gdb.python/py-record-btrace-threads.exp b/gdb/testsuite/gdb.python/py-record-btrace-threads.exp
index ef14edce..f0845f8 100644
--- a/gdb/testsuite/gdb.python/py-record-btrace-threads.exp
+++ b/gdb/testsuite/gdb.python/py-record-btrace-threads.exp
@@ -15,9 +15,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Skip this test if btrace is disabled.
+load_lib gdb-python.exp
-require !skip_btrace_tests
+require !skip_btrace_tests !skip_python_tests
standard_testfile
@@ -27,14 +27,6 @@ if { [gdb_compile_pthreads "$srcdir/$subdir/$srcfile" "$binfile" executable {deb
}
clean_restart $testfile
-# Skip this test if python is disabled.
-
-load_lib gdb-python.exp
-if { [skip_python_tests] } {
- untested "skipping python tests"
- return -1
-}
-
if { ![runto_main] } {
return -1
}