From patchwork Sat Feb 9 18:59:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Randall S. Becker" X-Patchwork-Id: 10804565 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1B07213BF for ; Sat, 9 Feb 2019 18:59:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C3D32A5AA for ; Sat, 9 Feb 2019 18:59:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F3F4E2A5AF; Sat, 9 Feb 2019 18:59:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E98DE2A5B4 for ; Sat, 9 Feb 2019 18:59:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727374AbfBIS7s (ORCPT ); Sat, 9 Feb 2019 13:59:48 -0500 Received: from sonic309.consmr.mail.bf2.yahoo.com ([74.6.129.253]:35776 "EHLO sonic309-17.consmr.mail.bf2.yahoo.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727013AbfBIS7q (ORCPT ); Sat, 9 Feb 2019 13:59:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s2048; t=1549738785; bh=Qjz8hZhOVxSUV9F563Yo1KVIMkhGKCFT8zd5e5USt5k=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__S59SjWyQCpkahCqKzQxSFdEacSVQXEUqB7idSchKcViFkAsjmHQPQVfg.ZDCx lijw8spEnoVg1.LIszdBSWsKsOaRWsQTAodHG0wD3pgwp5msQ14IjnMJytgFXTSqyNmFueOI.c6r vU68LuEuXPRqreBOAKGhRefItWGl1jK9xwVW37hZrjp08RECp4mdQ8SHpEYcZs4uXARREejFrVmX o82t05U6qhBz3kJUkf90jByzq4QrcjsW8Cs0ca41z6p1SNy4JGRsY0BB6t_Rm0iTXLYJjxWNSrTN TzXnkat0PeXvq1XuKlWHnE9zgKs823q70Dwm3XbKY5XE0l6Uo_PYa2HOCvBaQ1Fyw1ZKV7Sgn.y8 ZoQxeKzdsa30slTW3onc3XuK7tYS7iwk.W85zsVEQnLk9RuA7UFmhAznMEfeJxZbbZnA4caBC200 kB_IDv0uabgHILvMDX3LX_ModgC0- Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.bf2.yahoo.com with HTTP; Sat, 9 Feb 2019 18:59:45 +0000 Received: from CPE00fc8d49d843-CM00fc8d49d840.cpe.net.cable.rogers.com (EHLO localhost.localdomain) ([99.229.179.249]) by smtp423.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 84a16d171cb60baba1591047a4493b27; Sat, 09 Feb 2019 18:59:43 +0000 (UTC) From: randall.s.becker@rogers.com To: git@vger.kernel.org Cc: "Randall S. Becker" Subject: [Patch v1 3/3] t5562: replace /dev/zero with a pipe from generate_zero_bytes Date: Sat, 9 Feb 2019 13:59:30 -0500 Message-Id: <20190209185930.5256-4-randall.s.becker@rogers.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20190209185930.5256-1-randall.s.becker@rogers.com> References: <20190209185930.5256-1-randall.s.becker@rogers.com> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Randall S. Becker" This change removes the dependency on /dev/zero with an equivalent pipe of deliberately NUL bytes. This allows tests to proceed where /dev/zero does not exist. Signed-off-by: Randall S. Becker --- t/t5562-http-backend-content-length.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t5562-http-backend-content-length.sh b/t/t5562-http-backend-content-length.sh index 90d890d02..bbadde2c6 100755 --- a/t/t5562-http-backend-content-length.sh +++ b/t/t5562-http-backend-content-length.sh @@ -143,14 +143,14 @@ test_expect_success GZIP 'push gzipped empty' ' test_expect_success 'CONTENT_LENGTH overflow ssite_t' ' NOT_FIT_IN_SSIZE=$(ssize_b100dots) && - env \ + generate_zero_bytes infinity | env \ CONTENT_TYPE=application/x-git-upload-pack-request \ QUERY_STRING=/repo.git/git-upload-pack \ PATH_TRANSLATED="$PWD"/.git/git-upload-pack \ GIT_HTTP_EXPORT_ALL=TRUE \ REQUEST_METHOD=POST \ CONTENT_LENGTH="$NOT_FIT_IN_SSIZE" \ - git http-backend /dev/null 2>err && + git http-backend >/dev/null 2>err && grep "fatal:.*CONTENT_LENGTH" err '