* tests/test-pipe-filter-gi2-main.c: Include binary-io.h.
(main): Avoid NL to CRLF conversion on standard output.
* tests/test-pipe-filter-gi2-child.c: Include <unistd.h>, binary-io.h.
(main): Avoid NL to CRLF conversion on standard output.
+2022-09-09 Bruno Haible <bruno@clisp.org>
+
+ pipe-filter-gi tests: Fix long-standing failure on native Windows.
+ * tests/test-pipe-filter-gi2-main.c: Include binary-io.h.
+ (main): Avoid NL to CRLF conversion on standard output.
+ * tests/test-pipe-filter-gi2-child.c: Include <unistd.h>, binary-io.h.
+ (main): Avoid NL to CRLF conversion on standard output.
+
2022-09-09 Bruno Haible <bruno@clisp.org>
posix_spawn_file_actions_addclose tests: Fix mistake from 2022-09-07.
#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 (;;)
#include <string.h>
#include <signal.h>
+#include "binary-io.h"
#include "full-write.h"
#include "macros.h"
ASSERT (argc == 2);
+ set_binary_mode (STDOUT_FILENO, O_BINARY);
+
/* Test writing to a nonexistent program traps sooner or later. */
{
int rc;