From: Pedro Alves Date: Fri, 23 Jun 2023 21:03:57 +0000 (+0100) Subject: Skip gdb.base/many-headers.exp on Cygwin (submit independently) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4d3f6cf54e7d821a5a2d165ada951d1f6934a71;p=thirdparty%2Fbinutils-gdb.git Skip gdb.base/many-headers.exp on Cygwin (submit independently) When I first wrote this, I didn't have dumper.exe setup, so the testcase would spend 10 minutes doing the mmap loop thing, and then it wouldn't create a core dump anyhow. But with dumper.exe around, the testcase does generate the core dump, and it passes cleanly! So just skipping isn't right. I'm inclined to just drop the patch. I also wonder whether using native Win32 VirtualAlloc would be a lot faster than Cygwin mmap... Change-Id: I9ea3bc5c561115ee3997120556efc5faa7def080 --- diff --git a/gdb/testsuite/gdb.base/many-headers.exp b/gdb/testsuite/gdb.base/many-headers.exp index f46b9800cf9..a6d88580fac 100644 --- a/gdb/testsuite/gdb.base/many-headers.exp +++ b/gdb/testsuite/gdb.base/many-headers.exp @@ -24,6 +24,11 @@ if { [target_info gdb_protocol] != "" } { return } +# Running the many-headers binary on Cygwin is incredibly slow -- on +# the order of 10 minutes compared to 0.1s on Linux. So just skip the +# testcase. +require {!ishost "*-*-cygwin*"} + standard_testfile if {[build_executable "failed to prepare" $testfile $srcfile debug]} {