tests: work around MinGW/MSYS issue in fd redirections
commit53339f86ceb32ff98b1ccfb05539645cb7e641fe
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 10 Jan 2012 19:27:08 +0000 (10 20:27 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 27 Jan 2012 12:19:11 +0000 (27 13:19 +0100)
treec436561cce8bb4e570c2bd8deb75c48a6a6f8988
parentbd34a47c51ebc57cce6e9e184630ced52dc71203
tests: work around MinGW/MSYS issue in fd redirections

Some checks on $(AM_TESTS_FD_REDIRECT) were failing on MSYS, likely
because system calls like "write(9, ...)" simply doesn't work for
MinGW-compiled programs.  Similar usages work for the shell scripts
though, since /bin/sh is an MSYS program and thus is a lot more
POSIX-ish than most MinGW-compiled programs.

The best fix for this issue is to separate the checks using shell
scripts as dummy test cases from the checks using compiled programs
for the same purpose, and skip these latter checks on MinGW.

This change fixes automake bug#10466.  Report by Peter Rosin.

* tests/parallel-tests-fd-redirect.test: Move checks using compiled
C programs as test cases to ...
* tests/parallel-tests-fd-redirect-exeext.test: ... this new test.
* tests/list-of-tests.mk: Update.
tests/list-of-tests.mk
tests/parallel-tests-fd-redirect-exeext.test [copied from tests/parallel-tests-fd-redirect.test with 67% similarity]
tests/parallel-tests-fd-redirect.test