]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/test-lib.sh
tests: make GIT_TEST_GETTEXT_POISON a boolean
[thirdparty/git.git] / t / test-lib.sh
index 599fd70e141c7b7252b65ae6603486691864974b..ed5d69dfe5144fe7a6c85ad2541ba44b0e530f5c 100644 (file)
@@ -1443,11 +1443,9 @@ then
        unset GIT_TEST_GETTEXT_POISON_ORIG
 fi
 
-# Can we rely on git's output in the C locale?
-if test -z "$GIT_TEST_GETTEXT_POISON"
-then
-       test_set_prereq C_LOCALE_OUTPUT
-fi
+test_lazy_prereq C_LOCALE_OUTPUT '
+       ! git env--helper --type=bool --default=0 --exit-code GIT_TEST_GETTEXT_POISON
+'
 
 if test -z "$GIT_TEST_CHECK_CACHE_TREE"
 then
@@ -1607,3 +1605,7 @@ test_lazy_prereq SHA1 '
 test_lazy_prereq REBASE_P '
        test -z "$GIT_TEST_SKIP_REBASE_P"
 '
+
+test_lazy_prereq FAIL_PREREQS '
+       test -n "$GIT_TEST_FAIL_PREREQS"
+'