From patchwork Sat Feb 9 18:59:29 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: 10804569 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 6CC1F1575 for ; Sat, 9 Feb 2019 18:59:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5DFFB2A5AA for ; Sat, 9 Feb 2019 18:59:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 529EB2A5AF; Sat, 9 Feb 2019 18:59:51 +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 F3B8F2A5B5 for ; Sat, 9 Feb 2019 18:59:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727392AbfBIS7u (ORCPT ); Sat, 9 Feb 2019 13:59:50 -0500 Received: from sonic304-14.consmr.mail.bf2.yahoo.com ([74.6.128.37]:43263 "EHLO sonic304-14.consmr.mail.bf2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727328AbfBIS7s (ORCPT ); Sat, 9 Feb 2019 13:59:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s2048; t=1549738787; bh=q2MF1sUV83CYJ7dMdT7TSDEmhoB0cILrbwOT39Wgm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KB oiVBPQwCRunbnNRHetSbW5qop_obwvAmWw.QQitQlGmleQ68XQwbDePpICxh9NsEEAa6wUdw0jnl TdJekzkGtTzwaiPMzfP41BIyao7ETywAfS2w82wRpTBeLRYdXifpWDUzQE0e2b7Dan_MpeVR.hnT oP9A.KE8QnudGFfipJ0Lm1ZV_gN6YUad5BaZs9WlTMU8X88M6Ey7fqnIoEtejTJf5Rm258icfo8d GIuXjqx.E_nzrlii4ABCFGolcClvgUA0K5YbX5MWvQy8yAD2IioJRUMbUWfDJvmfnRuiLuxZrsBq _re4O9KKXOsshoB4Onq3xWV37qubq.PdxqbYF47jcfcKThaayGKhIo0vtufcURmK0c2Lg3cTS1hm hf166iw2mAVn.AFDLNP_9kNvFJVC48T7JmlDk5iDCkc2BoVopIrgtdaa9TAdRWvP6KtLvhncWaQR NZKjWW99Gkdl8PYzVEkSsDkYQVA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.bf2.yahoo.com with HTTP; Sat, 9 Feb 2019 18:59:47 +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 2/3] t5318: replace use of /dev/zero with generate_zero_bytes Date: Sat, 9 Feb 2019 13:59:29 -0500 Message-Id: <20190209185930.5256-3-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 generate_zero_bytes appending NUL values to blocks generating wrong signatures for test cases. Signed-off-by: Randall S. Becker Signed-off-by: Randall S. Becker Signed-off-by: Junio C Hamano --- t/t5318-commit-graph.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t5318-commit-graph.sh b/t/t5318-commit-graph.sh index 16d10ebce..65c1f45b0 100755 --- a/t/t5318-commit-graph.sh +++ b/t/t5318-commit-graph.sh @@ -383,7 +383,7 @@ corrupt_graph_and_verify() { cp $objdir/info/commit-graph commit-graph-backup && printf "$data" | dd of="$objdir/info/commit-graph" bs=1 seek="$pos" conv=notrunc && dd of="$objdir/info/commit-graph" bs=1 seek="$zero_pos" count=0 && - dd if=/dev/zero of="$objdir/info/commit-graph" bs=1 seek="$zero_pos" count=$(($orig_size - $zero_pos)) && + generate_zero_bytes $(($orig_size - $zero_pos)) >> "$objdir/info/commit-graph" && test_must_fail git commit-graph verify 2>test_err && grep -v "^+" test_err >err && test_i18ngrep "$grepstr" err