From 849ff8300586988a9fa2582454253524416998a5 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 11 May 2012 21:11:45 -0500 Subject: [PATCH] t4012: Fix invalid call to dd(1) t4012 assumed that it is okay to seek beyond the end of stdin. It is not, and leads to an access violation (Windows speak for: segmentation fault) with MinGW's dd.exe iff run in non-verbose mode. Further, for some reason 'echo X | dd bs=1k seek=1' resulted in 2050 bytes in this developer's setup instead of 1026. So let's use a valid technique to generate 1024 NULs followed by X and a line feed: a good ole' Perl script. This patch is dedicated to Randal "Merlyn" Schwartz. Signed-off-by: Johannes Schindelin --- t/t4012-diff-binary.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t4012-diff-binary.sh b/t/t4012-diff-binary.sh index 6cebb3951b..016004b140 100755 --- a/t/t4012-diff-binary.sh +++ b/t/t4012-diff-binary.sh @@ -125,7 +125,7 @@ cat >expect < binfile && git add binfile && i=0 && while test $i -lt 10000; do -- 2.11.4.GIT