Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-07-01 13:37:32 +0300
committerJunio C Hamano <gitster@pobox.com>2022-07-01 23:38:49 +0300
commit330ca8501b6b4cb7afec20dc0b9513542118e9de (patch)
treeccb23255977c428a8a7f81330c13d7702a23804a /t/t0015-hash.sh
parente4a4b31577c7419497ac30cebe30d755b97752c5 (diff)
test-tool test-hash: fix a memory leak
Fix a memory leak in "test-tool test-hash" which has been there since b57cbbf8a86 (test-sha1: test hashing large buffer, 2006-06-24), as a result we can mark more tests as passing with SANITIZE=leak using "TEST_PASSES_SANITIZE_LEAK=true". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0015-hash.sh')
-rwxr-xr-xt/t0015-hash.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t0015-hash.sh b/t/t0015-hash.sh
index 086822fc45..0a087a1983 100755
--- a/t/t0015-hash.sh
+++ b/t/t0015-hash.sh
@@ -1,8 +1,9 @@
#!/bin/sh
test_description='test basic hash implementation'
-. ./test-lib.sh
+TEST_PASSES_SANITIZE_LEAK=true
+. ./test-lib.sh
test_expect_success 'test basic SHA-1 hash values' '
test-tool sha1 </dev/null >actual &&