]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Skip the test when the fa_IR locale isn't installed.
authorBruno Haible <bruno@clisp.org>
Fri, 30 Jan 2004 11:21:32 +0000 (11:21 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:46 +0000 (12:11 +0200)
gettext-tools/tests/ChangeLog
gettext-tools/tests/format-c-5
gettext-tools/tests/format-c-5-prg.c

index 15c0883eec646321a660e09832e21d046fd852a9..4aa8d2195767996c529551d078b3cf5ec465b945 100644 (file)
@@ -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.
index e0bfedb9795af931b9c752d73598d5a43cad39ee..7430ac34c16123086e9fc70d68d2abfc653c76ce 100755 (executable)
@@ -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
index 8fd2fc8b0519d62fb1f16744d8e2949e154352ed..14d52fd280e412f521d29b0d3ac3ce1dd39bd625 100644 (file)
@@ -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");