]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Add comment about a test that may fail.
authorBruno Haible <bruno@clisp.org>
Sun, 28 Apr 2019 05:41:51 +0000 (07:41 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 28 Apr 2019 09:15:58 +0000 (11:15 +0200)
Reported by Nelson H. F. Beebe.

* gettext-tools/tests/lang-csharp: Add comment about possible test failure.

gettext-tools/tests/lang-csharp

index 065489607fdf93065525b97a8cd10994ccdd52e1..42dd440c66e0efa62c47b50da40a267f4896f26e 100755 (executable)
@@ -5,6 +5,18 @@
 # Assumes an fr_FR locale is installed.
 # Assumes the following packages are installed: mono, mcs.
 
+# Note: This test fails when a GNU gettext version < 0.17 is installed with
+# the same --prefix as mcs. mcs apparently searches ${prefix}/lib before
+# searching the directory specified on the command line:
+#   $ mcs -out:program.exe -lib:../../gettext-runtime/intl-csharp -reference:GNU.Gettext program.cs
+#   program.cs(17,45): error CS0117: `GNU.Gettext.GettextResourceManager' does not contain a definition for `GetParticularPluralString'
+#   /usr/local/lib/GNU.Gettext.dll (Location of the symbol related to previous error)
+#   program.cs(18,45): error CS0117: `GNU.Gettext.GettextResourceManager' does not contain a definition for `GetParticularString'
+#   /usr/local/lib/GNU.Gettext.dll (Location of the symbol related to previous error)
+#   Compilation failed: 2 error(s), 0 warnings
+# The workaround is to install GNU gettext with the same --prefix, despite
+# the test failure, and run "make check" afterwards.
+
 # Test whether we can build and test C# programs.
 test "${CSHARP_CHOICE}" != no || {
   echo "Skipping test: configured with --disable-csharp"