]> Pileus Git - ~andy/git/blobdiff - t/t4006-diff-mode.sh
Merge branch 'tb/sanitize-decomposed-utf-8-pathname'
[~andy/git] / t / t4006-diff-mode.sh
index 392dfeff57d0b1030e14c78bac105ac0f7183eb8..7a3e1f9a24e4be3759c29acc632fc461ede2b74b 100755 (executable)
@@ -27,7 +27,7 @@ test_expect_success 'chmod' '
 
 test_expect_success 'prepare binary file' '
        git commit -m rezrov &&
-       dd if=/dev/zero of=binbin bs=1024 count=1 &&
+       printf "\00\01\02\03\04\05\06" >binbin &&
        git add binbin &&
        git commit -m binbin
 '
@@ -46,18 +46,12 @@ test_expect_success '--shortstat output after text chmod' '
 
 test_expect_success '--stat output after binary chmod' '
        test_chmod +x binbin &&
-       cat >expect <<-EOF &&
-        binbin |  Bin 1024 -> 1024 bytes
-        1 file changed, 0 insertions(+), 0 deletions(-)
-       EOF
+       echo " 0 files changed" >expect &&
        git diff HEAD --stat >actual &&
        test_cmp expect actual
 '
 
 test_expect_success '--shortstat output after binary chmod' '
-       cat >expect <<-EOF &&
-        1 file changed, 0 insertions(+), 0 deletions(-)
-       EOF
        git diff HEAD --shortstat >actual &&
        test_cmp expect actual
 '