Skip Menu |

This queue is for tickets about the libintl-perl CPAN distribution.

Report information
The Basics
Id: 115052
Status: resolved
Priority: 0/
Queue: libintl-perl

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.25
Fixed in: (no value)



Subject: Tests fail on most platforms
See http://matrix.cpantesters.org/?dist=libintl-perl+1.25 for an overview. Actually it passes only on Mac OS X, and has a few passes on Linux and Windows. Where it fails I see a Plural<->Mehrzahl and Singular<->Eninzahl mismatch: # Test 24 got: "Plural" (./tests/03ngettext_pp.t at line 99) # Expected: "Mehrzahl" # ./tests/03ngettext_pp.t line 99 is: ok $translation, $expected; # Test 25 got: "Singular" (./tests/03ngettext_pp.t at line 99 fail #2) # Expected: "Einzahl" # Test 26 got: "Plural" (./tests/03ngettext_pp.t at line 99 fail #3) # Expected: "Mehrzahl" # Test 27 got: "Plural" (./tests/03ngettext_pp.t at line 99 fail #4) # Expected: "Mehrzahl" # Test 28 got: "Plural" (./tests/03ngettext_pp.t at line 99 fail #5) # Expected: "Mehrzahl" # Test 29 got: "Plural" (./tests/03ngettext_pp.t at line 99 fail #6) # Expected: "Mehrzahl" # Test 30 got: "Plural" (./tests/03ngettext_pp.t at line 99 fail #7) # Expected: "Mehrzahl" # Test 31 got: "Plural" (./tests/03ngettext_pp.t at line 99 fail #8) # Expected: "Mehrzahl" # Test 32 got: "Plural" (./tests/03ngettext_pp.t at line 99 fail #9) # Expected: "Mehrzahl" # Test 33 got: "Plural" (./tests/03ngettext_pp.t at line 99 fail #10) # Expected: "Mehrzahl" ./tests/03ngettext_pp.t ................. Failed 10/88 subtests (less 41 skipped subtests: 37 okay) On some systems I see also these test fails: # Test 8 got: "March" (./tests/03bind_textdomain_codeset_pp.t at line 74) # Expected: "M\xE4rz" # ./tests/03bind_textdomain_codeset_pp.t line 74 is: ok gettext ('March'), 'März'; ./tests/03bind_textdomain_codeset_pp.t .. Failed 1/14 subtests (less 3 skipped subtests: 10 okay) ./tests/03bind_textdomain_filter_pp.t ... ok ./tests/03bindtextdomain_pp.t ........... ok # Test 5 got: "Dezember" (./tests/03dcgettext_pp.t at line 63) # Expected: "December" # ./tests/03dcgettext_pp.t line 63 is: ok 'Dezember', dcgettext (existing => 'December', LC_MESSAGES); # Test 9 got: "Montag" (./tests/03dcgettext_pp.t at line 68) # Expected: "Monday" # ./tests/03dcgettext_pp.t line 68 is: ok 'Montag', dcgettext (additional => 'Monday', LC_MESSAGES); ./tests/03dcgettext_pp.t ................ Failed 2/11 subtests (less 2 skipped subtests: 7 okay) ./tests/03dcngettext_pp.t ............... ok ./tests/03dcnpgettext_pp.t .............. ok ./tests/03dcpgettext_pp.t ............... ok # Test 5 got: "Dezember" (./tests/03dgettext_pp.t at line 63) # Expected: "December" # ./tests/03dgettext_pp.t line 63 is: ok 'Dezember', dgettext (existing => 'December'); # Test 9 got: "Montag" (./tests/03dgettext_pp.t at line 68) # Expected: "Monday" # ./tests/03dgettext_pp.t line 68 is: ok 'Montag', dgettext (additional => 'Monday'); ./tests/03dgettext_pp.t ................. Failed 2/11 subtests (less 2 skipped subtests: 7 okay) ./tests/03dngettext_pp.t ................ ok ./tests/03dnpgettext_pp.t ............... ok ./tests/03dpgettext_pp.t ................ ok ./tests/03environment_pp.t .............. ok ./tests/03gettext_dumb.t ................ ok # Test 5 got: "December" (./tests/03gettext_pp.t at line 67) # Expected: "Dezember" # ./tests/03gettext_pp.t line 67 is: ok gettext ('December'), 'Dezember'; ./tests/03gettext_pp.t .................. Failed 1/8 subtests (less 1 skipped subtest: 6 okay)
On 2016-06-04 02:35:09, SREZIC wrote: Show quoted text
> See http://matrix.cpantesters.org/?dist=libintl-perl+1.25 for an > overview. Actually it passes only on Mac OS X, and has a few passes on > Linux and Windows. > > Where it fails I see a Plural<->Mehrzahl and Singular<->Eninzahl > mismatch: > > # Test 24 got: "Plural" (./tests/03ngettext_pp.t at line 99) > # Expected: "Mehrzahl" > # ./tests/03ngettext_pp.t line 99 is: ok $translation, $expected; > # Test 25 got: "Singular" (./tests/03ngettext_pp.t at line 99 fail #2) > # Expected: "Einzahl" > # Test 26 got: "Plural" (./tests/03ngettext_pp.t at line 99 fail #3) > # Expected: "Mehrzahl" > # Test 27 got: "Plural" (./tests/03ngettext_pp.t at line 99 fail #4) > # Expected: "Mehrzahl" > # Test 28 got: "Plural" (./tests/03ngettext_pp.t at line 99 fail #5) > # Expected: "Mehrzahl" > # Test 29 got: "Plural" (./tests/03ngettext_pp.t at line 99 fail #6) > # Expected: "Mehrzahl" > # Test 30 got: "Plural" (./tests/03ngettext_pp.t at line 99 fail #7) > # Expected: "Mehrzahl" > # Test 31 got: "Plural" (./tests/03ngettext_pp.t at line 99 fail #8) > # Expected: "Mehrzahl" > # Test 32 got: "Plural" (./tests/03ngettext_pp.t at line 99 fail #9) > # Expected: "Mehrzahl" > # Test 33 got: "Plural" (./tests/03ngettext_pp.t at line 99 fail #10) > # Expected: "Mehrzahl" > ./tests/03ngettext_pp.t ................. > Failed 10/88 subtests > (less 41 skipped subtests: 37 okay)
I looked into this issue. On FreeBSD, there's no de_AT locale which is used here. This is also correctly detected ($missing_locale is set to "locale de_AT missing"), but the following Einzahl/Mehrzahl tests are not skipped. On FreeBSD the tests would pass if "de_AT.UTF-8" is specified instead (all available locales are by default installed on FreeBSD systems).
Am Sa 11. Jun 2016, 18:10:46, SREZIC schrieb: Show quoted text
> I looked into this issue. On FreeBSD, there's no de_AT locale which is > used here. This is also correctly detected ($missing_locale is set to > "locale de_AT missing"), but the following Einzahl/Mehrzahl tests are > not skipped.
Intentionally, because they should pass. Originally it fell back to the 'de' locale. Show quoted text
> > On FreeBSD the tests would pass if "de_AT.UTF-8" is specified instead > (all available locales are by default installed on FreeBSD systems).
That causes headaches on other platforms. I simply skip the tests now because they work on my Linux box and my Mac. Since it's pure Perl it is highly unlikely that the tests would fail anywhere else, provided that the specified locale exists.
Fixed. [v1 3ff9a62] fixed false negatives 12 files changed, 20 insertions(+), 20 deletions(-) Thanks, Slaven, for your help!