From: Bruno Haible Date: Fri, 30 Jan 2004 11:21:32 +0000 (+0000) Subject: Skip the test when the fa_IR locale isn't installed. X-Git-Tag: v0.14.2~309 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=258bfd7189dfde24188da0e1586da37f55010090;p=thirdparty%2Fgettext.git Skip the test when the fa_IR locale isn't installed. --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 15c0883ee..4aa8d2195 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,10 @@ +2004-01-30 Bruno Haible + + * format-c-5-prg.c (main): Return with exit code 77 when the requested + locale doesn't exist. + * format-c-5: Skip the test when the fa_IR locale doesn't exist. + Reported by Paul Jarc . + 2004-01-29 Bruno Haible * gettext-0.14.1 released. diff --git a/gettext-tools/tests/format-c-5 b/gettext-tools/tests/format-c-5 index e0bfedb97..7430ac34c 100755 --- a/gettext-tools/tests/format-c-5 +++ b/gettext-tools/tests/format-c-5 @@ -45,8 +45,12 @@ sed 1d < fa.po > fa.po.strip ${DIFF} fa.po.strip fa.po.tmp || exit 1 LANGUAGE= ./fc5 fa_IR -result=$? +case $? in + 0) ;; + 77) rm -fr $tmpfiles; exit 77;; + *) exit 1;; +esac rm -fr $tmpfiles -exit $result +exit 0 diff --git a/gettext-tools/tests/format-c-5-prg.c b/gettext-tools/tests/format-c-5-prg.c index 8fd2fc8b0..14d52fd28 100644 --- a/gettext-tools/tests/format-c-5-prg.c +++ b/gettext-tools/tests/format-c-5-prg.c @@ -50,7 +50,7 @@ main (int argc, char *argv[]) if (setlocale (LC_ALL, "") == NULL) { fprintf (stderr, "Couldn't set locale.\n"); - exit (1); + exit (77); } textdomain ("fc5");