tests: improve diagnostics when write(2) fails
authorPeter Rosin <peda@lysator.liu.se>
Mon, 23 Jan 2012 08:18:46 +0000 (09:18 +0100)
committerPeter Rosin <peda@lysator.liu.se>
Mon, 23 Jan 2012 09:05:29 +0000 (10:05 +0100)
commit3794d01e0d62f5f93118ca6b3c75ddc84995d541
treed6f2bf6c66cf1f3bbe35178b633fa87dff3deba4
parent587ff343ab8d0d7781775eba4e65a4db9d61cc98
tests: improve diagnostics when write(2) fails

MinGW programs can't redirect file descriptor 9, they can only redirect
stdin, stdout and stderr.  So, improve the information in the test log.

See automake bug#10466.

* tests/parallel-tests-fd-redirect.test (baz.c, zardoz.c): Check the
return value from the write(2) call, and report detected errors.
tests/parallel-tests-fd-redirect.test