http-push: prevent format overflow warning with gcc >= 9
[git/debian.git] / t / t0205-gettext-poison.sh
bloba06269f38ae555f952b83b6fbc38374a725293d1
1 #!/bin/sh
3 # Copyright (c) 2010 Ævar Arnfjörð Bjarmason
6 test_description='Gettext Shell poison'
8 GIT_TEST_GETTEXT_POISON=YesPlease
9 export GIT_TEST_GETTEXT_POISON
10 . ./lib-gettext.sh
12 test_expect_success 'sanity: $GIT_INTERNAL_GETTEXT_SH_SCHEME" is poison' '
13 test "$GIT_INTERNAL_GETTEXT_SH_SCHEME" = "poison"
16 test_expect_success 'gettext: our gettext() fallback has poison semantics' '
17 printf "# GETTEXT POISON #" >expect &&
18 gettext "test" >actual &&
19 test_cmp expect actual &&
20 printf "# GETTEXT POISON #" >expect &&
21 gettext "test more words" >actual &&
22 test_cmp expect actual
25 test_expect_success 'eval_gettext: our eval_gettext() fallback has poison semantics' '
26 printf "# GETTEXT POISON #" >expect &&
27 eval_gettext "test" >actual &&
28 test_cmp expect actual &&
29 printf "# GETTEXT POISON #" >expect &&
30 eval_gettext "test more words" >actual &&
31 test_cmp expect actual
34 test_done