3 # Copyright (c) 2010 Ævar Arnfjörð Bjarmason
6 test_description='Gettext Shell poison'
10 test_expect_success GETTEXT_POISON 'sanity: $GIT_INTERNAL_GETTEXT_SH_SCHEME" is poison' '
11 test "$GIT_INTERNAL_GETTEXT_SH_SCHEME" = "poison"
14 test_expect_success GETTEXT_POISON 'gettext: our gettext() fallback has poison semantics' '
15 printf "# GETTEXT POISON #" >expect &&
16 gettext "test" >actual &&
17 test_cmp expect actual &&
18 printf "# GETTEXT POISON #" >expect &&
19 gettext "test more words" >actual &&
20 test_cmp expect actual
23 test_expect_success GETTEXT_POISON 'eval_gettext: our eval_gettext() fallback has poison semantics' '
24 printf "# GETTEXT POISON #" >expect &&
25 eval_gettext "test" >actual &&
26 test_cmp expect actual &&
27 printf "# GETTEXT POISON #" >expect &&
28 eval_gettext "test more words" >actual &&
29 test_cmp expect actual