From patchwork Fri Feb 8 21:59:26 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: 10803821 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 CCAD713BF for ; Fri, 8 Feb 2019 21:59:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BDF892EAF6 for ; Fri, 8 Feb 2019 21:59:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B252B2EAFA; Fri, 8 Feb 2019 21:59:43 +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 5FDDD2EAF6 for ; Fri, 8 Feb 2019 21:59:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726847AbfBHV7m (ORCPT ); Fri, 8 Feb 2019 16:59:42 -0500 Received: from sonic306-25.consmr.mail.ne1.yahoo.com ([66.163.189.87]:39127 "EHLO sonic306-25.consmr.mail.ne1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726788AbfBHV7l (ORCPT ); Fri, 8 Feb 2019 16:59:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s2048; t=1549663180; bh=lV9kseCUcEYvcayjRKNOBEvAWKgBAHTW4qv2f9b6tLc=; h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d2ULOfCpsPbEkqXECsiK3xhde4O3_ZxIL2LK6z3nJtYUxD4BVbWknaxRzLyxsoFWFmRcV Ue2JMNaHVZzUlSnOQP3UdRB7jJbxvvFnrOQY3Wy_Ay9iSfxSywwNJG2gUNomO3WgnvRvqdD5.U9Q DbtmP55b471gm0kAnA_kOU4..LWjIsAV4z5.EM8V.u5w7ofF3iUfClr1M24rF.exoHfFmcsR1kda 0dORwnQHIsaycfUEcBumVXkWssjthlu15IPz8clXROC7DH9nE7LQH0ElnHEDF8Kzn5EivyrWMwoc 87CLWdYwz6V8mY_wp8vMV1eU3uQ326ZvwYRuK.0NGgZKU0CzcqSMH6a9VsPL3IPNGoEhmvti26M9 N2m7fkYOY8eJ2S4.bUBpQbS56UP_7DeOtIAXByMoocxQ9zBJa_1ZQw7ZoTmRlWW6B2PCDT1r0Zno daCs.ckqWl_FOcJJgNy05fhoqzPo- Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Fri, 8 Feb 2019 21:59:40 +0000 Received: from CPE00fc8d49d843-CM00fc8d49d840.cpe.net.cable.rogers.com (EHLO localhost.localdomain) ([99.229.179.249]) by smtp401.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 229e69f4e2bd9251a968bb217882f18c; Fri, 08 Feb 2019 21:59:39 +0000 (UTC) From: randall.s.becker@rogers.com To: git@vger.kernel.org Cc: "Randall S. Becker" Subject: [Fix v1] t5562: remove dependency on /dev/zero Date: Fri, 8 Feb 2019 16:59:26 -0500 Message-Id: <20190208215926.23600-1-randall.s.becker@rogers.com> X-Mailer: git-send-email 2.12.3 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" Replaced subtest 15 (CONTENT_LENGTH overflow ssite_t) use of /dev/zero with yes and a translation of its result to a stream of NULL. This is a more portable solution. Signed-off-by: Randall S. Becker --- t/t5562-http-backend-content-length.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/t5562-http-backend-content-length.sh b/t/t5562-http-backend-content-length.sh index 90d890d02..63f82cca2 100755 --- a/t/t5562-http-backend-content-length.sh +++ b/t/t5562-http-backend-content-length.sh @@ -143,14 +143,16 @@ test_expect_success GZIP 'push gzipped empty' ' test_expect_success 'CONTENT_LENGTH overflow ssite_t' ' NOT_FIT_IN_SSIZE=$(ssize_b100dots) && - env \ + yes | tr "y" "\\0" | 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 && + echo "Err is" && + cat err && grep "fatal:.*CONTENT_LENGTH" err '