beyondgrep / ack2

**ack 2 is no longer being maintained. ack 3 is the latest version.**
https://github.com/beyondgrep/ack3/
Other
1.48k stars 138 forks source link

Tests fail on Cygwin #606

Closed ysangkok closed 7 years ago

ysangkok commented 8 years ago
Running make for P/PE/PETDANCE/ack-2.14.tar.gz
cp Is.pm blib/lib/App/Ack/Filter/Is.pm
cp Basic.pm blib/lib/App/Ack/Resource/Basic.pm
cp IsGroup.pm blib/lib/App/Ack/Filter/IsGroup.pm
cp Extension.pm blib/lib/App/Ack/Filter/Extension.pm
cp Default.pm blib/lib/App/Ack/Filter/Default.pm
cp ConfigFinder.pm blib/lib/App/Ack/ConfigFinder.pm
cp ConfigDefault.pm blib/lib/App/Ack/ConfigDefault.pm
cp Ack.pm blib/lib/App/Ack.pm
cp Match.pm blib/lib/App/Ack/Filter/Match.pm
cp ExtensionGroup.pm blib/lib/App/Ack/Filter/ExtensionGroup.pm
cp Filter.pm blib/lib/App/Ack/Filter.pm
cp Collection.pm blib/lib/App/Ack/Filter/Collection.pm
cp Resource.pm blib/lib/App/Ack/Resource.pm
cp FirstLineMatch.pm blib/lib/App/Ack/Filter/FirstLineMatch.pm
cp ConfigLoader.pm blib/lib/App/Ack/ConfigLoader.pm
cp Inverse.pm blib/lib/App/Ack/Filter/Inverse.pm
cp Resources.pm blib/lib/App/Ack/Resources.pm
cp ack blib/script/ack
"/usr/bin/perl.exe" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/ack
Manifying 1 pod document
  PETDANCE/ack-2.14.tar.gz
  /usr/bin/make -- OK
Running make test
Manifying 1 pod document
"/usr/bin/perl.exe" t/runtests.pl 0 0 "blib/lib" "blib/arch" t/*.t t/lib/*.t
Running tests on blib/script/ack
t/00-load.t .................. 1/1 # Testing ack version 2.14 under Perl 5.022002, /usr/bin/perl
# Using File::Next 1.16
# Using Getopt::Long 2.45
# Using Test::More 1.302052
# Using Test::Harness 3.35
t/00-load.t .................. ok
t/ack-1.t .................... ok
t/ack-c.t .................... ok
t/ack-color.t ................ ok
t/ack-column.t ............... ok
t/ack-create-ackrc.t ......... ok
t/ack-dump.t ................. ok
t/ack-f.t .................... ok
t/ack-files-from.t ........... ok
t/ack-filetypes.t ............ ok
t/ack-g.t .................... ok
t/ack-group.t ................ ok
t/ack-h.t .................... ok
t/ack-help-types.t ........... ok
t/ack-help.t ................. ok
t/ack-i.t .................... ok
t/ack-ignore-dir.t ........... ok
t/ack-interactive.t .......... ok
t/ack-invalid-ackrc.t ........ skipped: Don't yet have a reliable way to ignore the Unicode complaints from Pod::Perldoc
t/ack-k.t .................... ok
t/ack-known-types.t .......... ok
t/ack-line.t ................. ok
t/ack-m.t .................... ok
t/ack-match.t ................ ok
t/ack-n.t .................... ok
t/ack-named-pipes.t .......... ok
t/ack-o.t .................... ok
t/ack-pager.t ................ 2/15
    #   Failed test 'PAGER'
    #   at t/Util.pm line 415.
    #     Structures begin differing at:
    #          $got->[0] = '/usr/bin/env: ‘perl’: No such file or directory'
    #     $expected->[0] = 't/text/boy-named-sue.txt'
    # actual[
    #   '/usr/bin/env: ‘perl’: No such file or directory'
    # ]
    # expected[
    #   't/text/boy-named-sue.txt',
    #   '6:Was before he left, he went and named me Sue.',
    #   '13:I tell ya, life ain\'t easy for a boy named Sue.',
    #   '27:Sat the dirty, mangy dog that named me Sue.',
    #   '34:And I said: "My name is Sue! How do you do! Now you gonna die!"',
    #   '62:Cause I\'m the son-of-a-bitch that named you Sue."',
    #   '70:Bill or George! Anything but Sue! I still hate that name!',
    #   '72:    -- "A Boy Named Sue", Johnny Cash'
    # ]
    # Looks like you failed 1 test of 1.

#   Failed test 'lists_match( PAGER )'
#   at t/ack-pager.t line 57.

    #   Failed test 'PAGER_WITH_OPTS'
    #   at t/Util.pm line 415.
    #     Structures begin differing at:
    #          $got->[0] = '/usr/bin/env: ‘perl’: No such file or directory'
    #     $expected->[0] = 't/text/boy-named-sue.txt'
    # actual[
    #   '/usr/bin/env: ‘perl’: No such file or directory'
    # ]
    # expected[
    #   't/text/boy-named-sue.txt',
    #   '13:I tell ya, life ain\'t easy for a boy named Sue.',
    #   '34:And I said: "My name is Sue! How do you do! Now you gonna die!"',
    #   '70:Bill or George! Anything but Sue! I still hate that name!'
    # ]
    # Looks like you failed 1 test of 1.

#   Failed test 'lists_match( PAGER_WITH_OPTS )'
#   at t/ack-pager.t line 72.
t/ack-pager.t ................ 5/15
t/ack-pager.t ................ 7/15
    #   Failed test 'PAGER_ACKRC'
    #   at t/Util.pm line 415.
    #     Structures begin differing at:
    #          $got->[0] = '/usr/bin/env: ‘perl’: No such file or directory'
    #     $expected->[0] = 't/text/boy-named-sue.txt'
    # actual[
    #   '/usr/bin/env: ‘perl’: No such file or directory'
    # ]
    # expected[
    #   't/text/boy-named-sue.txt',
    #   '13:I tell ya, life ain\'t easy for a boy named Sue.',
    #   '34:And I said: "My name is Sue! How do you do! Now you gonna die!"',
    #   '70:Bill or George! Anything but Sue! I still hate that name!'
    # ]
    # Looks like you failed 1 test of 1.

#   Failed test 'lists_match( PAGER_ACKRC )'
#   at t/ack-pager.t line 152.
t/ack-pager.t ................ 12/15 # Looks like you failed 3 tests of 15.
t/ack-pager.t ................ Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/15 subtests
t/ack-passthru.t ............. ok
t/ack-print0.t ............... ok
t/ack-removed-options.t ...... ok
t/ack-s.t .................... ok
t/ack-show-types.t ........... ok
t/ack-type-del.t ............. ok
t/ack-type.t ................. ok
t/ack-v.t .................... ok
t/ack-w.t .................... 1/8

t/ack-w.t .................... ok
t/ack-x.t .................... ok
t/anchored.t ................. ok
t/asp-net-ext.t .............. ok
t/bad-ackrc-opt.t ............ ok
t/basic.t .................... ok
t/command-line-files.t ....... ok
t/config-backwards-compat.t .. ok
t/config-finder.t ............ 1/26 Insecure dependency in unlink while running with -T switch at t/config-finder.t line 67.
# Looks like your test exited with 2 just after 26.
t/config-finder.t ............ Dubious, test returned 2 (wstat 512, 0x200)
All 26 subtests passed
t/config-loader.t ............ ok
t/context.t .................. ok
t/default-filter.t ........... ok
t/exit-code.t ................ ok
t/ext-filter.t ............... ok
t/file-permission.t .......... ok
t/filetypes.t ................ ok
t/filter.t ................... ok
t/firstlinematch-filter.t .... ok
t/highlighting.t ............. ok
t/illegal-regex.t ............ ok
t/incomplete-last-line.t ..... ok
t/inverted-file-filter.t ..... ok
t/is-filter.t ................ ok
t/lib/00-coverage.t .......... ok
t/lib/Ack.t .................. ok
t/lib/Basic.t ................ ok
t/lib/Collection.t ........... ok
t/lib/ConfigDefault.t ........ ok
t/lib/ConfigFinder.t ......... ok
t/lib/ConfigLoader.t ......... ok
t/lib/Default.t .............. ok
t/lib/Extension.t ............ ok
t/lib/ExtensionGroup.t ....... ok
t/lib/Filter.t ............... ok
t/lib/FirstLineMatch.t ....... ok
t/lib/Inverse.t .............. ok
t/lib/Is.t ................... ok
t/lib/IsGroup.t .............. ok
t/lib/Match.t ................ ok
t/lib/Resource.t ............. ok
t/lib/Resources.t ............ ok
t/longopts.t ................. ok
t/match-filter.t ............. ok
t/mutex-options.t ............ ok
t/noackrc.t .................. ok
t/noenv.t .................... ok
t/process-substitution.t ..... Can't exec "bash": No such file or directory at t/process-substitution.t line 21.
t/process-substitution.t ..... skipped: You need bash to run this test
t/r-lang-ext.t ............... ok
t/resource-iterator.t ........ ok
t/zero.t ..................... ok

Test Summary Report
-------------------
t/ack-pager.t              (Wstat: 768 Tests: 15 Failed: 3)
  Failed tests:  2-3, 7
  Non-zero exit status: 3
t/config-finder.t          (Wstat: 512 Tests: 26 Failed: 0)
  Non-zero exit status: 2
Files=86, Tests=944, 425 wallclock secs ( 0.80 usr  0.41 sys + 135.44 cusr 104.42 csys = 241.06 CPU)
Result: FAIL
Failed 2/86 test programs. 3/944 subtests failed.
make: *** [Makefile:1031: test_classic] Error 255
  PETDANCE/ack-2.14.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports PETDANCE/ack-2.14.tar.gz
Failed during this command:
 PETDANCE/ack-2.14.tar.gz                     : make_test NO

cpan[2]>
petdance commented 7 years ago

@ysangkok Can you please let me know if this still fails on 2.16?

ysangkok commented 7 years ago

Works now in 2.16, installed using CPAN, thanks

petdance commented 7 years ago

Thanks for checking!