diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-22 10:05:00 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-01-25 09:02:11 -0700 |
commit | c7ccb471770f90e5d35bf9ba873e5748c3e60a50 (patch) | |
tree | fa0d883805918a492fdbef323f3993f825ce48da /gdb/testsuite/gdb.arch/i386-word.exp | |
parent | 73c06197483d1dcb82d17580f60d94ebfecf7a3b (diff) | |
download | gdb-c7ccb471770f90e5d35bf9ba873e5748c3e60a50.zip gdb-c7ccb471770f90e5d35bf9ba873e5748c3e60a50.tar.gz gdb-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-word.exp')
-rw-r--r-- | gdb/testsuite/gdb.arch/i386-word.exp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.arch/i386-word.exp b/gdb/testsuite/gdb.arch/i386-word.exp index 4e1e634..42d4446 100644 --- a/gdb/testsuite/gdb.arch/i386-word.exp +++ b/gdb/testsuite/gdb.arch/i386-word.exp @@ -19,10 +19,7 @@ # This file is part of the gdb testsuite. -if {(![istarget "x86_64-*-*"] && ![istarget "i?86-*-*"])} { - verbose "Skipping i386 word register tests." - return -} +require {is_any_target "x86_64-*-*" "i?86-*-*"} standard_testfile i386-pseudo.c |