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.base/catch-fork-static.exp | |
parent | 73c06197483d1dcb82d17580f60d94ebfecf7a3b (diff) | |
download | binutils-gdb-c7ccb471770f90e5d35bf9ba873e5748c3e60a50.tar.gz |
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.base/catch-fork-static.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/catch-fork-static.exp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/catch-fork-static.exp b/gdb/testsuite/gdb.base/catch-fork-static.exp index a59c6808f85..2844843638f 100644 --- a/gdb/testsuite/gdb.base/catch-fork-static.exp +++ b/gdb/testsuite/gdb.base/catch-fork-static.exp @@ -23,9 +23,7 @@ # Until "catch fork" is implemented on other targets... # -if {![istarget "*-*-linux*"] && ![istarget "*-*-openbsd*"]} { - return -} +require {is_any_target "*-*-linux*" "*-*-openbsd*"} # Reusing foll-fork.c since it's a simple forking program. standard_testfile foll-fork.c |