leak tests: mark most gettext tests as passing with SANITIZE=leak
Mark all but one tests that match "*gettext*" 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). In the case of "t0202-gettext-perl.sh" this isn't very meaningful as most of the work is on the Perl side, but let's mark it anyway. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
Oct 31, 2021 at 00:24 UTC
618200d24309bd53eba18bf6ddb9a7a8c838e808
4 files changed
+4
t/t0200-gettext-basic.sh
+1
@@ -5,6 +5,7 @@
5
6
test_description='Gettext support for Git'
7
8
+TEST_PASSES_SANITIZE_LEAK=true
9
. ./lib-gettext.sh
10
11
test_expect_success "sanity: \$GIT_INTERNAL_GETTEXT_SH_SCHEME is set (to $GIT_INTERNAL_GETTEXT_SH_SCHEME)" '
t/t0201-gettext-fallbacks.sh
+1
@@ -8,6 +8,7 @@ test_description='Gettext Shell fallbacks'
8
GIT_INTERNAL_GETTEXT_TEST_FALLBACKS=YesPlease
9
export GIT_INTERNAL_GETTEXT_TEST_FALLBACKS
10
11
+TEST_PASSES_SANITIZE_LEAK=true
12
. ./lib-gettext.sh
13
14
test_expect_success "sanity: \$GIT_INTERNAL_GETTEXT_SH_SCHEME is set (to $GIT_INTERNAL_GETTEXT_SH_SCHEME)" '
t/t0202-gettext-perl.sh
+1
@@ -5,6 +5,7 @@
5
6
test_description='Perl gettext interface (Git::I18N)'
7
8
+TEST_PASSES_SANITIZE_LEAK=true
9
. ./lib-gettext.sh
10
11
if ! test_have_prereq PERL; then
t/t0204-gettext-reencode-sanity.sh
+1
@@ -5,6 +5,7 @@
5
6
test_description="Gettext reencoding of our *.po/*.mo files works"
7
8
+TEST_PASSES_SANITIZE_LEAK=true
9
. ./lib-gettext.sh
10
11
# The constants used in a tricky observation for undefined behaviour