diff options
author | Bruno Haible <bruno@clisp.org> | 2021-06-15 18:37:18 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2021-06-15 18:38:09 +0200 |
commit | 90e2db600e03a984ee236e5bf079617e49bcdf18 (patch) | |
tree | 973f7c0a3f2a74b23bd00295c403f86be428259b /tests/test-pipe-filter-ii2-child.c | |
parent | f7ed7da4a75c39ef19f1660825e846006a7b9b9d (diff) | |
download | gnulib-90e2db600e03a984ee236e5bf079617e49bcdf18.tar.gz |
pipe-filter-ii tests: Fix long-standing failure on native Windows.
* tests/test-pipe-filter-ii2-main.c: Include binary-io.h.
(main): Avoid NL to CRLF conversion on standard output.
* tests/test-pipe-filter-ii2-child.c: Include <unistd.h>, binary-io.h.
(main): Avoid NL to CRLF conversion on standard output.
Diffstat (limited to 'tests/test-pipe-filter-ii2-child.c')
-rw-r--r-- | tests/test-pipe-filter-ii2-child.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-pipe-filter-ii2-child.c b/tests/test-pipe-filter-ii2-child.c index 14c9863783..2610988ad3 100644 --- a/tests/test-pipe-filter-ii2-child.c +++ b/tests/test-pipe-filter-ii2-child.c @@ -20,10 +20,15 @@ #include <stdio.h> #include <stdlib.h> +#include <unistd.h> + +#include "binary-io.h" int main () { + set_binary_mode (STDOUT_FILENO, O_BINARY); + /* Repeatedly: Read two integers i and j, then output all integers in the range i..j, one per line. */ for (;;) |