]> git.ipfire.org Git - thirdparty/git.git/commitdiff
leak tests: mark some rev-parse tests as passing with SANITIZE=leak
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 30 Oct 2021 22:24:15 +0000 (00:24 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Nov 2021 18:23:08 +0000 (11:23 -0700)
Mark some tests that match "*rev-parse*" as passing when git is
compiled with SANITIZE=leak. They'll now be listed as running under
the "GIT_TEST_PASSING_SANITIZE_LEAK=true" test mode (the "linux-leaks"
CI target).

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1503-rev-parse-verify.sh
t/t1506-rev-parse-diagnosis.sh
t/t1513-rev-parse-prefix.sh
t/t1515-rev-parse-outside-repo.sh

index 40958615ebb9c16af55ab81c08584ef784e0574c..94fe413ee3771d1d30b0d70a4354811a6e93d163 100755 (executable)
@@ -9,6 +9,7 @@ exec </dev/null
 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 add_line_into_file()
index 65a154a8a20f8df27a3f0eaee9ff9b65d5132639..18688cae17d57e8174f4d1d61eeb2e2ed341eac6 100755 (executable)
@@ -7,6 +7,7 @@ exec </dev/null
 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_did_you_mean ()
index 5f437be8c9e8c932f5d355e3f8636e5cbcd69791..ba43387bf167b598de91bea497251d270214f545 100755 (executable)
@@ -5,6 +5,7 @@ test_description='Tests for rev-parse --prefix'
 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'setup' '
index 3ec2971ee5befd2ad8ffff5e099f05307746e6d1..cdb26a30d726bb0088230c251a58ece0d160c72d 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 
 test_description='check that certain rev-parse options work outside repo'
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 test_expect_success 'set up non-repo directory' '