Re: Tests fail in Windows with cygwin

2024-09-28 Thread Michele Locati
> > The error message from the main process is a consequence of the error > > in the child process. The comment says that apparently, non-blocking sockets > > don't work. The code in gnulib/lib/nonblocking.c uses Windows system calls > > with pipes. > > > > Maybe the cause is that in your CI you us

Re: Tests fail in Windows with cygwin

2024-09-27 Thread Michele Locati
> The error message from the main process is a consequence of the error > in the child process. The comment says that apparently, non-blocking sockets > don't work. The code in gnulib/lib/nonblocking.c uses Windows system calls > with pipes. > > Maybe the cause is that in your CI you use > > de

Re: Tests fail in Windows with cygwin

2024-09-27 Thread Bruno Haible
Michele Locati wrote: > The only remaining failing test is not test-nonblocking-socket.sh: > I'll try to see what's going wrong there. FAIL: test-nonblocking-socket.sh ../../gltests/test-nonblocking-reader.h:111: assertion 'spent_time < 0.5' failed test-nonblockin

Re: Tests fail in Windows with cygwin

2024-09-26 Thread Michele Locati
> That's because the Cygwin package named 'libiconv-devel' contains > the Cygwin binaries. What you need are the mingw binaries, which > you have to compile yourself (since they are not packaged [1][2]). That worked [1]! The only remaining failing test is not test-nonblocking-socket.sh: I'll try t

Re: Tests fail in Windows with cygwin

2024-09-26 Thread Bruno Haible
Michele Locati wrote: > > These 28 failures are because you don't have an 'iconv' library installed. > > See gnulib/DEPENDENCIES (search for 'libiconv'). > > I initially installed the Cygwin package named "libiconv-devel" when I > encountered those errors. > > Then I tried adding the package name

Re: Tests fail in Windows with cygwin

2024-09-26 Thread Michele Locati
> > FAIL: test-u16-casecoll > > === > > ../../gltests/unicase/test-casecmp.h:34: assertion 'my_casecmp (input, > > SIZEOF (input), NULL, 0, NULL, nf, &cmp) == 0' failed > > FAIL test-u16-casecoll.exe (exit status: 3) > > These 28 failures are because you don't have an 'iconv' li

Re: Tests fail in Windows with cygwin

2024-09-26 Thread Bruno Haible
Michele Locati wrote: > I'm building iconv+gettext for Windows with Cygwin and MinGW-w64 in a > GitHub Action [1]. > > When running make check for gettext-tools, we have two failing tests [2]. > In the test-suite.log file we have: > > FAIL: test-getopt-gnu > = > ../../../gette

Tests fail in Windows with cygwin

2024-09-26 Thread Michele Locati
I'm building iconv+gettext for Windows with Cygwin and MinGW-w64 in a GitHub Action [1]. When running make check for gettext-tools, we have two failing tests [2]. In the test-suite.log file we have: FAIL: test-getopt-gnu = ../../../gettext-tools/gnulib-tests/test-getopt_long.h