aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch/i386-mpx-map.exp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-21 22:41:25 -0700
committerTom Tromey <tom@tromey.com>2023-01-25 09:02:11 -0700
commit73c06197483d1dcb82d17580f60d94ebfecf7a3b (patch)
tree0428d72d316845e4d9518dd0fce136477f358f83 /gdb/testsuite/gdb.arch/i386-mpx-map.exp
parent9c5221887f011a0dec54dbcdaf833e913cb68429 (diff)
downloadgdb-73c06197483d1dcb82d17580f60d94ebfecf7a3b.zip
gdb-73c06197483d1dcb82d17580f60d94ebfecf7a3b.tar.gz
gdb-73c06197483d1dcb82d17580f60d94ebfecf7a3b.tar.bz2
Use require with istarget
This changes many tests to use require when checking 'istarget'. A few of these conversions were already done in earlier patches. No change was needed to 'require' to make this work, due to the way it is written. I think the result looks pretty clear, and it has the bonus of helping to ensure that the reason that a test is skipped is always logged.
Diffstat (limited to 'gdb/testsuite/gdb.arch/i386-mpx-map.exp')
-rw-r--r--gdb/testsuite/gdb.arch/i386-mpx-map.exp9
1 files changed, 1 insertions, 8 deletions
diff --git a/gdb/testsuite/gdb.arch/i386-mpx-map.exp b/gdb/testsuite/gdb.arch/i386-mpx-map.exp
index c4768ac..d95adef 100644
--- a/gdb/testsuite/gdb.arch/i386-mpx-map.exp
+++ b/gdb/testsuite/gdb.arch/i386-mpx-map.exp
@@ -23,14 +23,7 @@ if { ![istarget i?86-*-*] && ![istarget x86_64-*-* ] } {
standard_testfile
-if { ![supports_mpx_check_pointer_bounds] } {
- return -1
-}
-
-if { ![have_mpx] } {
- unsupported "processor does not support MPX"
- return -1
-}
+require supports_mpx_check_pointer_bounds have_mpx
set comp_flags "-mmpx -fcheck-pointer-bounds -I${srcdir}/../nat/"