aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch/i386-sse.exp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-22 10:05:00 -0700
committerTom Tromey <tom@tromey.com>2023-01-25 09:02:11 -0700
commitc7ccb471770f90e5d35bf9ba873e5748c3e60a50 (patch)
treefa0d883805918a492fdbef323f3993f825ce48da /gdb/testsuite/gdb.arch/i386-sse.exp
parent73c06197483d1dcb82d17580f60d94ebfecf7a3b (diff)
downloadbinutils-c7ccb471770f90e5d35bf9ba873e5748c3e60a50.zip
binutils-c7ccb471770f90e5d35bf9ba873e5748c3e60a50.tar.gz
binutils-c7ccb471770f90e5d35bf9ba873e5748c3e60a50.tar.bz2
Introduce and use is_any_target
A few tests work on two different targets that can't be detected with a single call to istarget -- that proc only accepts globs, not regular expressions. This patch introduces a new is_any_target proc and then converts these tests to use it in a 'require'.
Diffstat (limited to 'gdb/testsuite/gdb.arch/i386-sse.exp')
-rw-r--r--gdb/testsuite/gdb.arch/i386-sse.exp5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.arch/i386-sse.exp b/gdb/testsuite/gdb.arch/i386-sse.exp
index a178247..6df98ec 100644
--- a/gdb/testsuite/gdb.arch/i386-sse.exp
+++ b/gdb/testsuite/gdb.arch/i386-sse.exp
@@ -19,10 +19,7 @@
# This file is part of the gdb testsuite.
-if { ![istarget i?86-*-*] && ![istarget x86_64-*-* ] } {
- verbose "Skipping x86 SSE tests."
- return
-}
+require {is_any_target i?86-*-* x86_64-*-*}
standard_testfile .c