]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Skip gdb.base/many-headers.exp on Cygwin (submit independently)
authorPedro Alves <pedro@palves.net>
Fri, 23 Jun 2023 21:03:57 +0000 (22:03 +0100)
committerPedro Alves <pedro@palves.net>
Mon, 9 Jun 2025 17:45:49 +0000 (18:45 +0100)
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

gdb/testsuite/gdb.base/many-headers.exp

index f46b9800cf97df5589546be6f2ba9854b7f48182..a6d88580facb590368c1456027b63dc00e88ec05 100644 (file)
@@ -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]} {