Mercurial > gnulib
changeset 39881:2ea5ba48211b
spawn-pipe tests: Avoid test failure on native Windows.
* tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
that fd 2 is closed.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 05 Oct 2018 00:27:25 +0200 |
parents | dfddbe1350b4 |
children | 423dd81f09f4 |
files | ChangeLog tests/test-spawn-pipe-child.c |
diffstat | 2 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Oct 05 00:22:57 2018 +0200 +++ b/ChangeLog Fri Oct 05 00:27:25 2018 +0200 @@ -1,3 +1,9 @@ +2018-10-04 Bruno Haible <bruno@clisp.org> + + spawn-pipe tests: Avoid test failure on native Windows. + * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect + that fd 2 is closed. + 2018-10-04 Bruno Haible <bruno@clisp.org> fcntl: Make it possible to namespace the defined symbol.
--- a/tests/test-spawn-pipe-child.c Fri Oct 05 00:22:57 2018 +0200 +++ b/tests/test-spawn-pipe-child.c Fri Oct 05 00:27:25 2018 +0200 @@ -98,9 +98,9 @@ case 1: /* Expect fd 2 is closed. But on HP-UX 11, fd 2 gets automatically re-opened to /dev/null if it - was closed. Future POSIX will allow this, see - <http://austingroupbugs.net/view.php?id=173>. */ -#if !defined __hpux + was closed. Similarly on native Windows. Future POSIX will allow + this, see <http://austingroupbugs.net/view.php?id=173>. */ +#if !(defined __hpux || (defined _WIN32 && ! defined __CYGWIN__)) ASSERT (! is_open (STDERR_FILENO)); #endif break;