sha1_file.c: do not die failing to malloc in unpack_compressed_entry
[gitweb.git] / t / t1050-large.sh
index aea493646e4400e733749768e48f2a3d1a470299..5642f84b8355debe955fe055c85ea6d3ca13c398 100755 (executable)
@@ -163,4 +163,10 @@ test_expect_success 'zip achiving, deflate' '
        git archive --format=zip HEAD >/dev/null
 '
 
+test_expect_success 'fsck' '
+       test_must_fail git fsck 2>err &&
+       n=$(grep "error: attempting to allocate .* over limit" err | wc -l) &&
+       test "$n" -gt 1
+'
+
 test_done