Re: dfa tests: Fix test failure on mingw

2023-04-25 Thread Bruno Haible
I did: > + set_binary_mode (STDOUT_FILENO, O_BINARY); Oops, that produces a compilation error (reported by the 'grep' CI and the 'sed' CI): ../../gltests/test-dfa-match-aux.c: In function ‘main’: ../../gltests/test-dfa-match-aux.c:61:20: error: ‘STDOUT_FILENO’ undeclared (first use in this func

Re: dfa tests: Fix test failure on mingw

2023-04-22 Thread Bruno Haible
one: 2023-04-22 Bruno Haible dfa tests: Fix test failure on mingw differently. Suggested by Paul Eggert. * tests/test-dfa-invalid-char-class.sh: Revert last change. * tests/test-dfa-match-aux.c: Include binary-io.h. (main): Put stdout into binary mode.

Re: dfa tests: Fix test failure on mingw

2023-04-20 Thread Bruno Haible
Paul Eggert wrote: > > +LC_ALL=C ${CHECKER} test-dfa-match-aux '[[:foo:]]' a > tmp 2>&1 > > +LC_ALL=C tr -d '\r' < tmp > out > > This sort of change means we won't catch stray CRs in the output. > > Is there some way we can instead compile or run MinGW apps so that they > instead follow the POSI

Re: dfa tests: Fix test failure on mingw

2023-04-20 Thread Paul Eggert
On 4/20/23 09:39, Bruno Haible wrote: +LC_ALL=C ${CHECKER} test-dfa-match-aux '[[:foo:]]' a > tmp 2>&1 +LC_ALL=C tr -d '\r' < tmp > out This sort of change means we won't catch stray CRs in the output. Is there some way we can instead compile or run MinGW apps so that they instead follow the

dfa tests: Fix test failure on mingw

2023-04-20 Thread Bruno Haible
-invalid-char-class.sh (exit status: 1) The cause is that the expected output has a Unix LF, whereas the actual output has a CRLF. This patch fixes the failure. 2023-04-20 Bruno Haible dfa tests: Fix test failure on mingw. * tests/test-dfa-invalid-char-class.sh: Transform CRLF