aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-12-14 09:42:37 -0700
committerTom Tromey <tom@tromey.com>2023-01-13 13:18:55 -0700
commit6848695de293c4f8f33bcab968f729702fdb0b2d (patch)
tree7598fe536851bf9ca63b4f5a4452fcb5c448c021 /gdb/testsuite/gdb.python
parentede8c648c4f4e28e02cd6b54cee0f6bd3f13e161 (diff)
downloadbinutils-6848695de293c4f8f33bcab968f729702fdb0b2d.zip
binutils-6848695de293c4f8f33bcab968f729702fdb0b2d.tar.gz
binutils-6848695de293c4f8f33bcab968f729702fdb0b2d.tar.bz2
Use require !skip_btrace_tests
This changes some tests to use "require !skip_btrace_tests".
Diffstat (limited to 'gdb/testsuite/gdb.python')
-rw-r--r--gdb/testsuite/gdb.python/py-record-btrace-threads.exp5
-rw-r--r--gdb/testsuite/gdb.python/py-record-btrace.exp5
2 files changed, 2 insertions, 8 deletions
diff --git a/gdb/testsuite/gdb.python/py-record-btrace-threads.exp b/gdb/testsuite/gdb.python/py-record-btrace-threads.exp
index 53f4a7b..ef14edce 100644
--- a/gdb/testsuite/gdb.python/py-record-btrace-threads.exp
+++ b/gdb/testsuite/gdb.python/py-record-btrace-threads.exp
@@ -17,10 +17,7 @@
# Skip this test if btrace is disabled.
-if { [skip_btrace_tests] } {
- untested "skipping btrace tests"
- return -1
-}
+require !skip_btrace_tests
standard_testfile
diff --git a/gdb/testsuite/gdb.python/py-record-btrace.exp b/gdb/testsuite/gdb.python/py-record-btrace.exp
index 0d36959..38c326f 100644
--- a/gdb/testsuite/gdb.python/py-record-btrace.exp
+++ b/gdb/testsuite/gdb.python/py-record-btrace.exp
@@ -17,10 +17,7 @@
# Skip this test if btrace is disabled.
-if { [skip_btrace_tests] } {
- untested "skipping btrace tests"
- return -1
-}
+require !skip_btrace_tests
load_lib gdb-python.exp