diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-08 11:54:47 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-01-13 13:18:58 -0700 |
commit | e0c86460bcd9e19bb3f069af19ab5d1e3333e4c9 (patch) | |
tree | 4a27471b6f9eb22f1126fb836bc1f1ef1fa13b61 /gdb/testsuite/gdb.base | |
parent | 1cf897dec9466eed3d63f3b0c42257f41eb55fcc (diff) | |
download | gdb-e0c86460bcd9e19bb3f069af19ab5d1e3333e4c9.zip gdb-e0c86460bcd9e19bb3f069af19ab5d1e3333e4c9.tar.gz gdb-e0c86460bcd9e19bb3f069af19ab5d1e3333e4c9.tar.bz2 |
Rename to allow_hw_breakpoint_tests
This changes skip_hw_breakpoint_tests to invert the sense, and renames
it to allow_hw_breakpoint_tests. This also converts some tests to use
"require" -- I missed this particular check in the first series.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r-- | gdb/testsuite/gdb.base/break-idempotent.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/break-unload-file.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/hbreak-unmapped.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/hbreak.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/hw-sw-break-same-address.exp | 4 |
5 files changed, 5 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.base/break-idempotent.exp b/gdb/testsuite/gdb.base/break-idempotent.exp index 559a3a6..4090cd2 100644 --- a/gdb/testsuite/gdb.base/break-idempotent.exp +++ b/gdb/testsuite/gdb.base/break-idempotent.exp @@ -176,7 +176,7 @@ foreach_with_prefix pie { "nopie" "pie" } { foreach_with_prefix always_inserted { "off" "on" } { test_break $always_inserted "break" - if {![skip_hw_breakpoint_tests]} { + if {[allow_hw_breakpoint_tests]} { test_break $always_inserted "hbreak" } diff --git a/gdb/testsuite/gdb.base/break-unload-file.exp b/gdb/testsuite/gdb.base/break-unload-file.exp index 3bf10d0..82e9694 100644 --- a/gdb/testsuite/gdb.base/break-unload-file.exp +++ b/gdb/testsuite/gdb.base/break-unload-file.exp @@ -149,7 +149,7 @@ foreach initial_load { "cmdline" "file" } { # coverage. foreach always_inserted { "off" "on" } { test_break $initial_load $always_inserted "break" - if {![skip_hw_breakpoint_tests]} { + if {[allow_hw_breakpoint_tests]} { test_break $initial_load $always_inserted "hbreak" } } diff --git a/gdb/testsuite/gdb.base/hbreak-unmapped.exp b/gdb/testsuite/gdb.base/hbreak-unmapped.exp index 3572452..18d9c09 100644 --- a/gdb/testsuite/gdb.base/hbreak-unmapped.exp +++ b/gdb/testsuite/gdb.base/hbreak-unmapped.exp @@ -13,9 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -if {[skip_hw_breakpoint_tests]} { - return 0 -} +require allow_hw_breakpoint_tests standard_testfile diff --git a/gdb/testsuite/gdb.base/hbreak.exp b/gdb/testsuite/gdb.base/hbreak.exp index f18d23d..7fc1bb2 100644 --- a/gdb/testsuite/gdb.base/hbreak.exp +++ b/gdb/testsuite/gdb.base/hbreak.exp @@ -13,9 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -if {[skip_hw_breakpoint_tests]} { - return 0 -} +require allow_hw_breakpoint_tests set test hbreak set srcfile ${test}.c diff --git a/gdb/testsuite/gdb.base/hw-sw-break-same-address.exp b/gdb/testsuite/gdb.base/hw-sw-break-same-address.exp index 1f68326..9f94118 100644 --- a/gdb/testsuite/gdb.base/hw-sw-break-same-address.exp +++ b/gdb/testsuite/gdb.base/hw-sw-break-same-address.exp @@ -18,9 +18,7 @@ # breakpoint locations as duplicate locations, which would lead to bad # behavior. See PR gdb/25741. -if {[skip_hw_breakpoint_tests]} { - return 0 -} +require allow_hw_breakpoint_tests set test hbreak set srcfile ${test}.c |