diff options
author | Bruno Haible <bruno@clisp.org> | 2004-01-30 11:21:32 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:11:46 +0200 |
commit | 258bfd7189dfde24188da0e1586da37f55010090 (patch) | |
tree | 51d10fd45ca8bbac65e80b8ddf687721cfe22d0e /gettext-tools/tests | |
parent | 32c03fa91b7326f1520a66997e4f9939be1ee216 (diff) | |
download | external_gettext-258bfd7189dfde24188da0e1586da37f55010090.zip external_gettext-258bfd7189dfde24188da0e1586da37f55010090.tar.gz external_gettext-258bfd7189dfde24188da0e1586da37f55010090.tar.bz2 |
Skip the test when the fa_IR locale isn't installed.
Diffstat (limited to 'gettext-tools/tests')
-rw-r--r-- | gettext-tools/tests/ChangeLog | 7 | ||||
-rwxr-xr-x | gettext-tools/tests/format-c-5 | 8 | ||||
-rw-r--r-- | gettext-tools/tests/format-c-5-prg.c | 2 |
3 files changed, 14 insertions, 3 deletions
diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 15c0883..4aa8d21 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,10 @@ +2004-01-30 Bruno Haible <bruno@clisp.org> + + * 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 <prj@po.cwru.edu>. + 2004-01-29 Bruno Haible <bruno@clisp.org> * gettext-0.14.1 released. diff --git a/gettext-tools/tests/format-c-5 b/gettext-tools/tests/format-c-5 index e0bfedb..7430ac3 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 8fd2fc8..14d52fd 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"); |