Re: [PATCH 2/3] t: add "test-tool genbytes" to avoid slow tr(1) on macOS

From
Johannes Sixt <hidden>
Date
2026-11-08 16:34:11
Reply to
Kristofer Karlsson, 2026-11-08
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
Thread (22 messages) 22 messages, 4 authors, last reply 4h ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help