]> 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 4b346467df7aaf2e5215f7ebb3bfb4ae13a3ffbc..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