Subject: | Test suite may fail with non-English locale |
With a non-English locale (e.g. LC_ALL=de_DE.UTF-8) t/fail_msg_dollar_bang.t fails, but only for perl < 5.21.0, because of changed locale handling in later perls:
# Failed test 'No <NUM> (right error message)'
# at t/fail_msg_dollar_bang.t line 12.
# 'Call to main::get_result() at t/fail_msg_dollar_bang.t line 23 failed because:
# Bad result: Datei oder Verzeichnis nicht gefunden
# Failure detected at t/fail_msg_dollar_bang.t line 31
#
# '
# doesn't match '(?^u:Call\ to\ main\:\:get_result\(\)\ at\ t\/fail_msg_dollar_bang\.t\ line\ 23\ failed\ because\:\
# \ \ \ \ Bad\ result\:\ No\ such\ file\ or\ directory\
# Failure\ detected)'
# Failed test 'No <INT> (right error message)'
# at t/fail_msg_dollar_bang.t line 12.
# 'Call to main::get_result() at t/fail_msg_dollar_bang.t line 23 failed because:
# Bad result: Datei oder Verzeichnis nicht gefunden
# Failure detected at t/fail_msg_dollar_bang.t line 32
#
# '
# doesn't match '(?^u:Call\ to\ main\:\:get_result\(\)\ at\ t\/fail_msg_dollar_bang\.t\ line\ 23\ failed\ because\:\
# \ \ \ \ Bad\ result\:\ No\ such\ file\ or\ directory\
# Failure\ detected)'
# Failed test 'No <STR> (right error message)'
# at t/fail_msg_dollar_bang.t line 12.
# 'Call to main::get_result() at t/fail_msg_dollar_bang.t line 23 failed because:
# Bad result: Datei oder Verzeichnis nicht gefunden
# Failure detected at t/fail_msg_dollar_bang.t line 33
#
# '
# doesn't match '(?^u:Call\ to\ main\:\:get_result\(\)\ at\ t\/fail_msg_dollar_bang\.t\ line\ 23\ failed\ because\:\
# \ \ \ \ Bad\ result\:\ No\ such\ file\ or\ directory\
# Failure\ detected)'
# Failed test 'No <SCALAR> (right error message)'
# at t/fail_msg_dollar_bang.t line 12.
# 'Call to main::get_result() at t/fail_msg_dollar_bang.t line 23 failed because:
# Bad result: Datei oder Verzeichnis nicht gefunden
# Failure detected at t/fail_msg_dollar_bang.t line 34
#
# '
# doesn't match '(?^u:Call\ to\ main\:\:get_result\(\)\ at\ t\/fail_msg_dollar_bang\.t\ line\ 23\ failed\ because\:\
# \ \ \ \ Bad\ result\:\ No\ such\ file\ or\ directory\
# Failure\ detected)'
# Failed test 'No <ARRAY> (right error message)'
# at t/fail_msg_dollar_bang.t line 12.
# 'Call to main::get_result() at t/fail_msg_dollar_bang.t line 23 failed because:
# Bad result: Datei oder Verzeichnis nicht gefunden
# Failure detected at t/fail_msg_dollar_bang.t line 35
#
# '
# doesn't match '(?^u:Call\ to\ main\:\:get_result\(\)\ at\ t\/fail_msg_dollar_bang\.t\ line\ 23\ failed\ because\:\
# \ \ \ \ Bad\ result\:\ No\ such\ file\ or\ directory\
# Failure\ detected)'
# Failed test 'No <HASH> (right error message)'
# at t/fail_msg_dollar_bang.t line 12.
# 'Call to main::get_result() at t/fail_msg_dollar_bang.t line 23 failed because:
# Bad result: Datei oder Verzeichnis nicht gefunden
# Failure detected at t/fail_msg_dollar_bang.t line 36
#
# '
# doesn't match '(?^u:Call\ to\ main\:\:get_result\(\)\ at\ t\/fail_msg_dollar_bang\.t\ line\ 23\ failed\ because\:\
# \ \ \ \ Bad\ result\:\ No\ such\ file\ or\ directory\
# Failure\ detected)'
# Failed test 'No <CODE> (right error message)'
# at t/fail_msg_dollar_bang.t line 12.
# 'Call to main::get_result() at t/fail_msg_dollar_bang.t line 23 failed because:
# Bad result: Datei oder Verzeichnis nicht gefunden
# Failure detected at t/fail_msg_dollar_bang.t line 37
#
# '
# doesn't match '(?^u:Call\ to\ main\:\:get_result\(\)\ at\ t\/fail_msg_dollar_bang\.t\ line\ 23\ failed\ because\:\
# \ \ \ \ Bad\ result\:\ No\ such\ file\ or\ directory\
# Failure\ detected)'
# Failed test 'No <REGEXP> (right error message)'
# at t/fail_msg_dollar_bang.t line 12.
# 'Call to main::get_result() at t/fail_msg_dollar_bang.t line 23 failed because:
# Bad result: Datei oder Verzeichnis nicht gefunden
# Failure detected at t/fail_msg_dollar_bang.t line 38
#
# '
# doesn't match '(?^u:Call\ to\ main\:\:get_result\(\)\ at\ t\/fail_msg_dollar_bang\.t\ line\ 23\ failed\ because\:\
# \ \ \ \ Bad\ result\:\ No\ such\ file\ or\ directory\
# Failure\ detected)'
# Failed test 'No <GLOB> (right error message)'
# at t/fail_msg_dollar_bang.t line 12.
# 'Call to main::get_result() at t/fail_msg_dollar_bang.t line 23 failed because:
# Bad result: Datei oder Verzeichnis nicht gefunden
# Failure detected at t/fail_msg_dollar_bang.t line 39
#
# '
# doesn't match '(?^u:Call\ to\ main\:\:get_result\(\)\ at\ t\/fail_msg_dollar_bang\.t\ line\ 23\ failed\ because\:\
# \ \ \ \ Bad\ result\:\ No\ such\ file\ or\ directory\
# Failure\ detected)'
# Failed test 'Non-existent method called (right error message)'
# at t/fail_msg_dollar_bang.t line 12.
# 'Call to main::get_result() at t/fail_msg_dollar_bang.t line 23 failed because:
# Bad result: Datei oder Verzeichnis nicht gefunden
# Failure detected at t/fail_msg_dollar_bang.t line 41
#
# '
# doesn't match '(?^u:Call\ to\ main\:\:get_result\(\)\ at\ t\/fail_msg_dollar_bang\.t\ line\ 23\ failed\ because\:\
# \ \ \ \ Bad\ result\:\ No\ such\ file\ or\ directory\
# Failure\ detected)'
# Looks like you failed 10 tests of 31.
t/fail_msg_dollar_bang.t ...
Dubious, test returned 10 (wstat 2560, 0xa00)
Failed 10/31 subtests