]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/t4104-apply-boundary.sh
t6030 (bisect): work around Mac OS X "ls"
[git.git] / t / t4104-apply-boundary.sh
index 64f34e329867cbef3c122c96a63cfd844b0953af..e7e2913de745cc9f7639103757933f6238fdd564 100755 (executable)
@@ -90,7 +90,7 @@ do
                                cat '"$kind-patch.$with"'
                                (exit 1)
                        } &&
-                       git diff '"$kind"'-expect victim
+                       test_cmp '"$kind"'-expect victim
                '
        done
 done
@@ -108,8 +108,21 @@ do
                        cat '"$kind-ng.without"'
                        (exit 1)
                } &&
-               git diff '"$kind"'-expect victim
+               test_cmp '"$kind"'-expect victim
        '
 done
 
+test_expect_success 'two lines' '
+
+       >file &&
+       git add file &&
+       echo aaa >file &&
+       git diff >patch &&
+       git add file &&
+       echo bbb >file &&
+       git add file &&
+       test_must_fail git apply --check patch
+
+'
+
 test_done