From: Bruno Haible Date: Tue, 22 Nov 2005 11:51:41 +0000 (+0000) Subject: Avoid test failure if a locale is missing. X-Git-Tag: v0.15~345 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e042cd3cce6882a0dfbb36611103bb8e435abdd1;p=thirdparty%2Fgettext.git Avoid test failure if a locale is missing. --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 987247157..500e82b29 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,7 @@ +2005-11-21 Bruno Haible + + * gettext-4: Skip the test if there is no de_DE.ISO-8859-1 locale. + 2005-10-18 Bruno Haible * xgettext-c-11: New file. diff --git a/gettext-tools/tests/gettext-4 b/gettext-tools/tests/gettext-4 index afe855db8..aa3332b9a 100755 --- a/gettext-tools/tests/gettext-4 +++ b/gettext-tools/tests/gettext-4 @@ -5,6 +5,9 @@ tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 +# This test works only on systems that have a de_DE.ISO-8859-1 locale installed. +LC_ALL=de_DE.ISO-8859-1 ./testlocale || exit 77 + tmpfiles="$tmpfiles de_DE" test -d de_DE || mkdir de_DE test -d de_DE/LC_MESSAGES || mkdir de_DE/LC_MESSAGES