From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 7E6401F5AE for ; Tue, 15 Jun 2021 16:38:12 +0000 (UTC) Received: from localhost ([::1]:49986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltC4p-00061s-Fc for normalperson@yhbt.net; Tue, 15 Jun 2021 12:38:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltC4m-00061V-HH for bug-gnulib@gnu.org; Tue, 15 Jun 2021 12:38:08 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.25]:14460) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltC4k-0004vK-Ac for bug-gnulib@gnu.org; Tue, 15 Jun 2021 12:38:08 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1623775082; cv=none; d=strato.com; s=strato-dkim-0002; b=MgDn1uN/T3WxihS1E1HN/aSUF05Yf7M/o0OpLwYllr2LoK/PhnRpwvQLawHyhmyKlH K115gSYvzC5pmu6zzehXlmjre6UCEXc9+WJ+C3Rn/E1nNcfHG1iwEc/Z6JhQsFdpt/vW a+C8a8Apqig+ALFcfp2dXajhEnUFi8wTOLPbXBVMupwghLTbPjEXVgg1jsCEcsVlu12o gtCGQ9C7+yDjd73nJNHaTV5nz2/S/ea/Hy9UVePm0Cd3pgBVvrDbiXyab6ortSIo4iYa QpUNbbBbU+JnAjPQpujWmOOf71VYQCgK9EJ/YhjYdm4e7/8cot3Oqx48wbbh8C9krs/K hoYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1623775082; s=strato-dkim-0002; d=strato.com; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=wRQoI+jpmXM3SsFdeNm3ZFR4OzpjDgDxuSbbSmR9Ukg=; b=KEykMLXuATOFgMCDIlFo2P8Phlr8yjEBTM2URlYb2Y5WDA9u1+jo6vDQAvoFRI45hd ilgTgTEtz1vbserxHFN55bBQN+DrnucYarz2CPTdqBmGr/HG4HI/cW6w33tTkjuEnigT fFEkO27ZZqxIzD4fsjL/GrgpRGL0PQ7g/rMSkTx8VEwE9DGd73LmAo+9pjV6Ogkwjuw9 rtfZ6oSI2jeC6dmzImggdK8qWKLbKxLIe9nSABnmwguyV0lJFHw87PHBNKiJNG6brOjO F/7L7bGWR9KycVwIh3Vq2HmuhTFD58P/T0oG3KIdVcyoj0w+QIv5PcC031NColUzcLey nvrw== ARC-Authentication-Results: i=1; strato.com; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1623775082; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=wRQoI+jpmXM3SsFdeNm3ZFR4OzpjDgDxuSbbSmR9Ukg=; b=qOOzCG29+56zlSAQfzdFuyaFZgRAiWCaVDF15LJUnzf+jW5dRR8t+e5Lyz/i1To0A7 kqWZ6X2rTl1g7JVRgWj5fuTuto3LfiN8+AOmuniWG53AFsdAOEIpAPMU3pUfecGFBQj7 Pc83xPXXOmNotjNPdKToiDbSxVU9jU77fTotck86TBBwZIR2youjxYNCgV5xmNLqcTE6 ppVGIm78HIyxK3P0gjs0p+jbPkykIE1AN528qp58/PvwFbbC13ueNOyFE0c8r8LMjkna uKCS2Ac5sSonJIqxieqOS9/CVzldlTaVI8OhsHeKrQNo6IB14DfI6I9ksr2GWrcEN0a8 m4Kw== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOGKf9yfs=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 47.27.2 DYNA|AUTH) with ESMTPSA id q0869dx5FGc2561 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Tue, 15 Jun 2021 18:38:02 +0200 (CEST) From: Bruno Haible To: bug-gnulib@gnu.org Subject: pipe-filter-ii tests: Fix long-standing failure on native Windows Date: Tue, 15 Jun 2021 18:38:01 +0200 Message-ID: <6200769.fZFnhCkfei@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-210-generic; KDE/5.18.0; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=85.215.255.25; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" The test-pipe-filter-ii2.sh test never worked on native Windows, due to CR-LF and even CR-CR-LF seequences in the output. 2021-06-15 Bruno Haible 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 , binary-io.h. (main): Avoid NL to CRLF conversion on standard output. diff --git a/tests/test-pipe-filter-ii2-child.c b/tests/test-pipe-filter-ii2-child.c index 14c9863..2610988 100644 --- a/tests/test-pipe-filter-ii2-child.c +++ b/tests/test-pipe-filter-ii2-child.c @@ -20,10 +20,15 @@ #include #include +#include + +#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 (;;) diff --git a/tests/test-pipe-filter-ii2-main.c b/tests/test-pipe-filter-ii2-main.c index 3674e01..aad0505 100644 --- a/tests/test-pipe-filter-ii2-main.c +++ b/tests/test-pipe-filter-ii2-main.c @@ -26,6 +26,7 @@ #include #include +#include "binary-io.h" #include "full-write.h" #include "macros.h" @@ -88,6 +89,8 @@ main (int argc, char **argv) ASSERT (argc == 2); + set_binary_mode (STDOUT_FILENO, O_BINARY); + /* Test writing to a nonexistent program traps sooner or later. */ { struct locals l;