Re: [PATCH] ld: Skip p33265-2 and pr33265-2 tests on Windows

Jan Dubiec <[email protected]> Fri, 24 Jul 2026 18:24:29 +0200
Newsgroups gmane.comp.gnu.binutils
Message-ID <[email protected]>
On 30.06.2026 11:08, Jan Beulich wrote:
> On 30.06.2026 10:19, Jan Dubiec wrote:

[...]
>> I agree, but I wanted the patch be "in spirit of" pr24576-1 and
>> pr24576-2 related patch which was posted here in February. Also
>> binutils' test framework does not offer an elegant way to xfail a test
>> depending on *host*. At least I don't know such a way…
> 
> Can't the [ishost ...] you present use in the .exp file equally be used
> in the .d files:
> 
> #xfail: [ishost *-mingw*]

Unfortunately, it doesn't work. It probably requires some changes to 
run_dump_test.

[...]>>> What about Cygwin? Does this somehow circumvent the issue?
>>
>> I have no idea. But I bet that there is no such problem.
> 
> Is this betting of yours backed by any insight you have? (If we're uncertain,
> I think at least the commit message should mention this fact. If later someone
> notices the same issue on Cygwin, they'd know right away what to do about it.)
Applications built with MinGW are native Windows applications and use 
the WinAPI directly. Applications built with Cygwin, on the other hand, 
rely on the POSIX compatibility layer provided by cygwin1.dll. Among 
other differences, PATH_MAX in Cygwin is 4096 bytes. That's why I'm 
fairly confident this issue does not exist there.

That said, I no longer have Cygwin installed, so I'm unable to run these 
test cases to verify it.

/J.D.