aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads/wp-replication.exp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-12-14 09:38:35 -0700
committerTom Tromey <tom@tromey.com>2023-01-13 13:18:55 -0700
commit7c1a12b3e8a2792db0b903c8fcb0f7ac5e314734 (patch)
tree6bbf47e9cf13d99372dc7b81ee1096374f15e7d0 /gdb/testsuite/gdb.threads/wp-replication.exp
parentc76fbc7fc3361ad2be29116df86b8494c4922507 (diff)
downloadbinutils-7c1a12b3e8a2792db0b903c8fcb0f7ac5e314734.zip
binutils-7c1a12b3e8a2792db0b903c8fcb0f7ac5e314734.tar.gz
binutils-7c1a12b3e8a2792db0b903c8fcb0f7ac5e314734.tar.bz2
Use require !skip_hw_watchpoint_tests
This changes some tests to use "require !skip_hw_watchpoint_tests".
Diffstat (limited to 'gdb/testsuite/gdb.threads/wp-replication.exp')
-rw-r--r--gdb/testsuite/gdb.threads/wp-replication.exp4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.threads/wp-replication.exp b/gdb/testsuite/gdb.threads/wp-replication.exp
index 738cb34..7da66f3 100644
--- a/gdb/testsuite/gdb.threads/wp-replication.exp
+++ b/gdb/testsuite/gdb.threads/wp-replication.exp
@@ -27,9 +27,7 @@ set NR_TRIGGERS_PER_THREAD 2
# This test verifies that a hardware watchpoint gets replicated to
# every existing thread and is detected properly. This test is
# only meaningful on a target with hardware watchpoint support.
-if {[skip_hw_watchpoint_tests]} {
- return 0
-}
+require !skip_hw_watchpoint_tests
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "additional_flags=-DNR_THREADS=$NR_THREADS -DNR_TRIGGERS_PER_THREAD=$NR_TRIGGERS_PER_THREAD"]] != "" } {