ack3 icon indicating copy to clipboard operation
ack3 copied to clipboard

t/ack-x.t may fail on systems where a non-English locale is active

Open eserte opened this issue 6 years ago • 2 comments

t/ack-x.t may fail on systems where a non-English locale is active (e.g. LC_ALL=de_DE.UTF-8):

    
    #   Failed test 'Error \#2 matches'
    #   at t/ack-x.t line 98.
    #                   'ack: /tmp/oFxPwydBrG: Keine Berechtigung'
    #     doesn't match '(?^:\/tmp\/oFxPwydBrG\:\ Permission\ denied)'
    # Looks like you failed 1 test of 5.

#   Failed test 'GH \#175'
#   at t/ack-x.t line 106.
# Looks like you failed 1 test of 2.
t/ack-x.t .................... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests 

eserte avatar Jun 26 '19 06:06 eserte

Maybe we need two versions of the test, and select strict (exact expected-message) vs looser (any message) based on Locale. (Or equivalently, have looser test always and SKIP strict test if locale not one of the EN* locales.)

n1vux avatar Jun 26 '19 18:06 n1vux

Happens also with PETDANCE/ack-v3.5.0.tar.gz

eserte avatar Mar 13 '21 08:03 eserte