Article View: linux.kernel.git
Article #2647Re: [PATCH 2/3] t: add "test-tool genbytes" to avoid slow tr(1) on macOS
From: Johannes Sixt
Date: Sun, 08 Nov 2026 16:34
Date: Sun, 08 Nov 2026 16:34
14 lines
7800 bytes
7800 bytes
Am 08.11.26 um 13:24 schrieb Kristofer Karlsson:
> - test-tool genzeros 2147483649 | tr "\000" "1" >expect &&
> + printf 000000000%02147483640d 0 >expect &&
>
> I tried this out and it works on Linux but fails on macOS[1]. What
> happens is that printf only outputs the nine literal zeros
> ("000000000") there, and silently ignores the very large padding.
Fair enough.
> [1] https://github.com/gitgitgadget/git/actions/runs/42475956442/job/128717309586
-- Hannes
Technical Details
Message-ID:
<c8688e1a-17b6-4d0b-ba9a-fc1e0fa8938b@kdbg.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74832-linux-kernel-git=dewy.ruReferences:
<pull.2301.git.1794063565.gitgitgadget@gmail.com> <4c02ada9b85028f26f7e7bcc62e2ac12443da9c5.1794063565.git.gitgitgadget@gmail.com> <50b6c35f-e9c3-47ef-8fca-aebd2620623a@kdbg.org> <CAL71e4NFyAShDZPW9JRB7Bpg3aLY5mY4wdn5m_ZYoLQjHZw_jA@mail.gmail.com> <6992b7e9-8721-4e1f-9c00-9fd0e0704e80@kdbg.org> <CAL71e4NKsTZNoLFOuSPfiJPf7oS57S01MpM5V+UOr+bgMGjOkQ@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74832-linux-kernel-git=dewy.ru From: j6t@kdbg.org (Johannes Sixt) Newsgroups: linux.kernel.git Subject: Re: [PATCH 2/3] t: add "test-tool genbytes" to avoid slow tr(1) on macOS Date: Sun, 8 Nov 2026 17:34:02 +0100 Organization: Usenet Network Message-ID: <c8688e1a-17b6-4d0b-ba9a-fc1e0fa8938b@kdbg.org> References: <pull.2301.git.1794063565.gitgitgadget@gmail.com> <4c02ada9b85028f26f7e7bcc62e2ac12443da9c5.1794063565.git.gitgitgadget@gmail.com> <50b6c35f-e9c3-47ef-8fca-aebd2620623a@kdbg.org> <CAL71e4NFyAShDZPW9JRB7Bpg3aLY5mY4wdn5m_ZYoLQjHZw_jA@mail.gmail.com> <6992b7e9-8721-4e1f-9c00-9fd0e0704e80@kdbg.org> <CAL71e4NKsTZNoLFOuSPfiJPf7oS57S01MpM5V+UOr+bgMGjOkQ@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="160269"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:hAyKS3EUhKpGYGuYWFicXHTv8o4= sha256:LxD9lRV+IGerIQK/toxnyrolijJdNptB7y5PNbCcfbY= sha1:sw3ExNr82CdCTJOf8ZSdCfogfmU= sha256:tPUyjyQm47E7hQ7cmplkDrhyu0deDemDWG/B4LntMmA= Content-Language: en-US List-ID: <git.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 13E2A1135C5; Sun, 8 Nov 2026 19:42:56 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.851 X-Spam-Status: No, score=-1.851 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mompUqXXULou; Sun, 8 Nov 2026 19:42:49 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-74832-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=kdbg.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 9F67811356D; Sun, 8 Nov 2026 19:42:48 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id E2E184569E; Sun, 8 Nov 2026 16:34:13 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794155653; b=uYLFeoICCDdHkBIyU0gayJPUQ/INYO3KnZnft8978fGAP6YChbUnGgwAd9ArO+v2NAwR JdXOUoTuyuJrKNug+sumuhayvDINq7o5LuVEtoVGX1ke+kRvQhspBeJH9C6mI+gDurFF1 k8wRxeaZe4Xyur0ydkAwbi1aHTQlyTZ8KqgpG62+51UmWgvj0oAVcM3fKCZoNs5jcezUb M64kWMq44K4JuTo36KS5K2HbP8KtU8i2Lj1zizYFUUBsaRrwqzq4W0ggHt7MxjQ5fEQ/X omiVm35I3TZD2V7E/u4gtAiu0GkYbNgDFKu5JIcwoHoa6ZWN4RiuH5oOBFQu4x3M0Kw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794155653; h=X-Original-To:Received:DMARC-Filter:Received:Message-ID:Date: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent: Subject:Content-Language:To:Cc:References:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=dpnxa+1GNp6B5MZxFzb6MMBxcU/sKbVNu+MuFD9rF2k=; b=SW6qutSOerTfaUse6WFnWUeRJGsOgFOvjLjIe9j7WiVR/KN/asaB8zFvGDVMtVh4TZ5l Z0v8qkAYgyIAli1rVod8C6BM5+djASn0tBuMf3nilCLCqypMIKmWYtpXLvP9TF91kS/2I UT5A8lcxGoXuzjd87KnXd0GqIIt/AKrzR/N8P7gElmzbynfZ7lqVOS80tJqn2yjvEcyxR LXE++bJEaFK447ztasCepoibGNWYJuljKQKeLZDi0Lw5i/ZcZqLFR45yuw7kRoqTib4aD uYj0sua5Ri+PhAJKKSkFbtKbdxW+Utn9/dRB6iZs3RAY5Qg9hlYlbjNUK5KNuCJfiMA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=kdbg.org; spf=pass smtp.mailfrom=kdbg.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 665EF606A32A; Sun, 8 Nov 2026 16:34:13 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.33.87.17 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794155652; b=LMOetkGg5bb+83XpJZ8Cjugt0SioSM62xwAOKN1MSRc7YMxZnwauaz8SGhBqX+nBE4YW uTm5UhlhdCLFILbIthCvuJ++Jqbl0laBz3OOMkFa5PFc67IpxxpgK8ffIHiJEdJwnWY2z kJIHkkOLRoIQpqexT+WHkxgfGAV1qq5bSrjlIjrWQtkpCtd2VhEhNnr7HYcp2S7Op216C hANbnPC7bvuVkX4+2tQFv8zrOT4bxK/KZDK0KYrfNxMj2srUAS/ABGrIhey0nGXlaQjSy Z2yFfzY5vBUyhVqMw0lg8pFEZTO30JS0T0EkuYj2mdHMoA+7HpRnjqupXkNz2dQkZlA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794155652; h=DMARC-Filter:Received:Message-ID:Date:MIME-Version:User-Agent: Subject:Content-Language:To:Cc:References:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=dpnxa+1GNp6B5MZxFzb6MMBxcU/sKbVNu+MuFD9rF2k=; b=gcZxd/Pp/m7YJpKV2o6NuxgNwVQSVXN+2sBn/PX9CYb7rHpbeBrvp7i8+0xBHFKoudiV 5l1umCfCr2HnuQDU/0tAsddMp1Ksc4mlY8jW9wdsAx2MPhoqj7I7M9F95QtVxmjRhbMhC NFUI5dECSKiquOUgUqhdNmVxWSYurvA5a4r1yu4YtNk64sgOrKiJuJgTTCBxB9VSkyaCx rK0bqfKhneVzYvICow86gyNNKoiakVYwh2sh+VCccoBRED/KfQzSFW7i8ug+hl2BYClNI T85I/2IP3erksDV5TemNgje5VJVOctWnpZfk/ed6yYUOLwTIa7NTXJzZ1rc+Nw8X5JQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=kdbg.org; spf=pass smtp.mailfrom=kdbg.org; arc=none smtp.remote-ip=213.33.87.17 X-Received: from bsmtp3.bon.at (bsmtp3.bon.at [213.33.87.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB2A6606A31C for <git@vger.kernel.org>; Sun, 8 Nov 2026 16:34:11 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CB2A6606A31C X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kdbg.org X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kdbg.org X-Received: from [192.168.0.102] (unknown [93.83.142.38]) by bsmtp3.bon.at (Postfix) with ESMTPSA id 4jMz570TTmzRnlL; Sun, 8 Nov 2026 17:34:02 +0100 (CET) X-Mailing-List: git@vger.kernel.org X-List-Post: <mailto:git@vger.kernel.org> X-List-Help: <mailto:git+help@vger.kernel.org> X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:git+owner@vger.kernel.org> X-Precedence: list X-User-Agent: Mozilla Thunderbird X-Cc: Patrick Steinhardt <ps@pks.im>, git@vger.kernel.org, Kristofer Karlsson via GitGitGadget <gitgitgadget@gmail.com> X-In-Reply-To: <CAL71e4NKsTZNoLFOuSPfiJPf7oS57S01MpM5V+UOr+bgMGjOkQ@mail.gmail.com>