Re: [PATCH] t1050-large: replace dd by test-genrandom
- From
Jeff King <peff@peff.net>
- Date
- Jan 14, 2015, 11:27 UTC
- Message-ID
- <20150114112659.GA23474@peff.net>
- In-Reply-To
- <xmqq4mruckrp.fsf@gitster.dls.corp.google.com>
On Tue, Jan 13, 2015 at 03:40:10PM -0800, Junio C Hamano wrote:
Show 5 quoted lines
> >> - test-genrandom seed2 2500000 >huge && > >> + printf "\0%2500000s" Y >huge && > [...] > Are we depending on the binary-ness of these test files by the way? > The leading NUL \0 looked a bit strange to me.
I don't think so. We do not want to do a text diff, because that would overflow our GIT_ALLOC_LIMIT. But the core.bigfilethreshold check is what will make them binary, not the actual content. So a gigantic text file is arguably a better test of the feature in question.
-Peff