aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2023-06-01 18:43:15 +0100
committerPedro Alves <pedro@palves.net>2025-06-11 15:03:28 +0100
commiteb6c9310ee4d6cbde509d251fafb54ae45f5a5bf (patch)
treebc057ebe68a079a869da20ccf710bbc394218aab /gdb/testsuite/lib
parentf74bd9bcabce02de70169ea441d0ab6b8a2e2451 (diff)
downloadbinutils-eb6c9310ee4d6cbde509d251fafb54ae45f5a5bf.zip
binutils-eb6c9310ee4d6cbde509d251fafb54ae45f5a5bf.tar.gz
binutils-eb6c9310ee4d6cbde509d251fafb54ae45f5a5bf.tar.bz2
gdb testsuite: Introduce allow_multi_inferior_tests and use it throughout
The Windows port does not support multi-process debugging. Testcases that want to exercise multi-process currently FAIL and some hit cascading timeouts. Add a new allow_multi_inferior_tests procedure, meant to be used with require, and sprinkle it throughout testcases as needed. Approved-by: Kevin Buettner <kevinb@redhat.com> Change-Id: I4a10d8f04f9fa10f4b751f140ad0a6d31fbd9dfb
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp18
1 files changed, 18 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 6690685..ef46e8f 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -5111,6 +5111,24 @@ proc allow_fork_tests {} {
return 1
}
+# Return whether we allow running testcases that want to debug
+# multiple inferiors with the same target. Not all targets support
+# this. Note that some tests add a second inferior but never start
+# it. Those tests should not be skipped due to this proc returning
+# false.
+
+proc allow_multi_inferior_tests {} {
+ if {[istarget "*-*-cygwin*"] || [istarget "*-*-mingw*"]} {
+ return 0
+ }
+
+ if {[use_gdb_stub]} {
+ return 0
+ }
+
+ return 1
+}
+
# Return a 1 if we should run tests that require hardware breakpoints
proc allow_hw_breakpoint_tests {} {