From: Bruno Haible Date: Sun, 28 Apr 2019 05:41:51 +0000 (+0200) Subject: Add comment about a test that may fail. X-Git-Tag: v0.20~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6738649118d29842d8f9183892009cc77d437ba;p=thirdparty%2Fgettext.git Add comment about a test that may fail. Reported by Nelson H. F. Beebe. * gettext-tools/tests/lang-csharp: Add comment about possible test failure. --- diff --git a/gettext-tools/tests/lang-csharp b/gettext-tools/tests/lang-csharp index 065489607..42dd440c6 100755 --- a/gettext-tools/tests/lang-csharp +++ b/gettext-tools/tests/lang-csharp @@ -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"