]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid test failure with fpc version 2.6.0.
authorBruno Haible <bruno@clisp.org>
Sat, 18 Feb 2012 22:58:38 +0000 (23:58 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 19 Feb 2012 00:50:09 +0000 (01:50 +0100)
gettext-tools/tests/ChangeLog
gettext-tools/tests/lang-rst

index 6815ad35b7a2b6a60a7476a675945cade55ef791..f42e425ebbc7f6006eafa5693c776510b36912f8 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-18  Bruno Haible  <bruno@clisp.org>
+
+       Avoid test failure with fpc version 2.6.0.
+       * lang-rst: Allow a test result with line wrapping.
+
 2012-02-18  Bruno Haible  <bruno@clisp.org>
 
        Make the lang-pascal test work on x86_64 platforms.
index 2fe484fe513ef34b77394c15eef383a22c18e15d..ce6a16e2c47cde6c327e5c8a140b081e3562cbf5 100755 (executable)
@@ -65,15 +65,15 @@ ${DIFF} prog.ok prog.pot || exit 1
 
 # The output of rstconv is slightly different:
 # - ModuleName:ConstName instead of ModuleName.ConstName
-# - no line wrapping
+# - no line wrapping in fpc versions < 2.6.0
 # - extra newline at the end
 
 tmpfiles="$tmpfiles prog.pot"
 : ${RSTCONV=rstconv}
 if (${RSTCONV} -o prog.pot -i prog.rst) >/dev/null 2>&1; then
 
-tmpfiles="$tmpfiles prog.ok"
-cat <<EOF > prog.ok
+tmpfiles="$tmpfiles prog.ok1"
+cat <<EOF > prog.ok1
 #: rstconv:help
 msgid "rstconv [-h|--help]    Displays this help\nrstconv options        Convert rst file\n\nOptions are:\n  -i file    Use specified file instead of stdin as input .rst (OPTIONAL)\n  -o file    Write output to specified file (REQUIRED)\n  -f format  Specifies the output format:\n             po    GNU gettext .po (portable) format (DEFAULT)\n"
 msgstr ""
@@ -96,8 +96,40 @@ msgstr ""
 
 EOF
 
+tmpfiles="$tmpfiles prog.ok2"
+cat <<EOF > prog.ok2
+#: rstconv:help
+msgid ""
+"rstconv [-h|--help]    Displays this help\n"
+"rstconv options        Convert rst file\n"
+"\n"
+"Options are:\n"
+"  -i file    Use specified file instead of stdin as input .rst (OPTIONAL)\n"
+"  -o file    Write output to specified file (REQUIRED)\n"
+"  -f format  Specifies the output format:\n"
+"             po    GNU gettext .po (portable) format (DEFAULT)\n"
+msgstr ""
+
+#: rstconv:InvalidOption
+msgid "Invalid option - "
+msgstr ""
+
+#: rstconv:OptionAlreadySpecified
+msgid "Option has already been specified - "
+msgstr ""
+
+#: rstconv:NoOutFilename
+msgid "No output filename specified"
+msgstr ""
+
+#: rstconv:InvalidOutputFormat
+msgid "Invalid output format -"
+msgstr ""
+
+EOF
+
 : ${DIFF=diff}
-${DIFF} prog.ok prog.pot || exit 1
+${DIFF} prog.ok1 prog.pot >/dev/null || ${DIFF} prog.ok2 prog.pot || exit 1
 
 fi