Expected pr24576-1 and pr24576-2 failures on Windows/MinGW

Alan Modra amodra@gmail.com
Mon Feb 23 11:23:58 GMT 2026


On Mon, Feb 23, 2026 at 08:40:24PM +1030, Alan Modra wrote:
> The simplest thing to do is ignore this and tell people to put up with
> some FAILs.  ;-)  Apart from that, not running the test on hosts
> likely to have non-unix file systems sounds like a reasonable plan.

I'll commit this.

diff --git a/ld/testsuite/ld-scripts/script.exp b/ld/testsuite/ld-scripts/script.exp
index ed4cbf7660e..ff65e397b6b 100644
--- a/ld/testsuite/ld-scripts/script.exp
+++ b/ld/testsuite/ld-scripts/script.exp
@@ -233,8 +233,12 @@ run_dump_test "pr20302"
 run_dump_test "output-section-types"
 run_dump_test "ld-version"
 run_dump_test "ld-version-2"
-run_dump_test "pr24576-1"
-run_dump_test "pr24576-2"
+# Windows hosts are likely to have filesystems where st_ino has no meaning,
+# breaking the test for accidental duplicate scripts.
+if { ![ishost *-mingw*] } {
+    run_dump_test "pr24576-1"
+    run_dump_test "pr24576-2"
+}
 run_dump_test "linker-script-not-found"
 
 run_dump_test "segment-start" {{name (default)}}


-- 
Alan Modra


More information about the Binutils mailing list