Skip to content

Tests fail on MSYS2, Windows 10 #3

Open
@hakonhagland

Description

@hakonhagland

I am trying to install Perl::LanguageServer on MSYS2, Windows 10 and it fails to install because it depends on this module, and this module has failed tests:

$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for File::Copy::Recursive::Reduced
Writing MYMETA.yml and MYMETA.json

$ make
cp .README.pod blib/lib/File/Copy/Recursive/.README.pod
cp lib/File/Copy/Recursive/Reduced.pm blib/lib/File/Copy/Recursive/Reduced.pm
cp .version_info.pl blib/lib/File/Copy/Recursive/.version_info.pl
Manifying 2 pod documents

$ make test
PERL_DL_NONLAZY=1 "/usr/bin/perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/001-fcopy.t .... 1/85
#   Failed test 'fcopy(): /tmp/IEJjn0s5v6/sym is indeed a symlink'
#   at t/001-fcopy.t line 73.

#   Failed test 'Symlink /tmp/IEJjn0s5v6/sym points to /tmp/IEJjn0s5v6/old'
#   at t/001-fcopy.t line 74.
#          got: undef
#     expected: '/tmp/IEJjn0s5v6/old'

#   Failed test 'fcopy(): but /tmp/IEJjn0s5v6/new is also another symlink'
#   at t/001-fcopy.t line 80.

#   Failed test 'fcopy(): /tmp/IEJjn0s5v6/xsym is indeed a symlink'
#   at t/001-fcopy.t line 87.

#   Failed test 'Symlink /tmp/IEJjn0s5v6/xsym points to /tmp/IEJjn0s5v6/old'
#   at t/001-fcopy.t line 88.
#          got: undef
#     expected: '/tmp/IEJjn0s5v6/old'

#   Failed test 'fcopy(): Got expected warning when copying from symlink whose target does not exist'
#   at t/001-fcopy.t line 94.
#                   ''
#     doesn't match '(?^:Copying a symlink \(/tmp/IEJjn0s5v6/xsym\) whose target does not exist)'
t/001-fcopy.t .... 80/85 # Looks like you failed 6 tests of 85.
t/001-fcopy.t .... Dubious, test returned 6 (wstat 1536, 0x600)
Failed 6/85 subtests
        (less 30 skipped subtests: 49 okay)
t/002-dircopy.t .. 1/115
#   Failed test 'Got expected number of directories, files and symlinks by copying'
#   at t/002-dircopy.t line 403.
#     Structures begin differing at:
#          $got->{files} = '9'
#     $expected->{files} = '6'

#   Failed test 'Got expected warning when copying a symlink whose target does not exist'
#   at t/002-dircopy.t line 431.
#                   ''
#     doesn't match '(?^:Copying a symlink.*?whose target does not exist)'

#   Failed test 'Got expected number of directories, files and symlinks by copying'
#   at t/002-dircopy.t line 457.
#     Structures begin differing at:
#          $got->{symlinks} = '0'
#     $expected->{symlinks} = '3'
# Looks like you failed 3 tests of 115.
t/002-dircopy.t .. Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/115 subtests
        (less 26 skipped subtests: 86 okay)
t/003-rcopy.t .... 1/188
#   Failed test 'rcopy(): /tmp/6XcQ5nXz2w/sym is indeed a symlink'
#   at t/003-rcopy.t line 80.

#   Failed test 'Symlink /tmp/6XcQ5nXz2w/sym points to /tmp/6XcQ5nXz2w/old'
#   at t/003-rcopy.t line 81.
#          got: undef
#     expected: '/tmp/6XcQ5nXz2w/old'

#   Failed test 'fcopy(): but /tmp/6XcQ5nXz2w/new is also another symlink'
#   at t/003-rcopy.t line 87.

#   Failed test 'rcopy(): /tmp/6XcQ5nXz2w/xsym is indeed a symlink'
#   at t/003-rcopy.t line 94.

#   Failed test 'Symlink /tmp/6XcQ5nXz2w/sym points to /tmp/6XcQ5nXz2w/old'
#   at t/003-rcopy.t line 95.
#          got: undef
#     expected: '/tmp/6XcQ5nXz2w/old'

#   Failed test 'fcopy(): Got expected warning when copying from symlink whose target does not exist'
#   at t/003-rcopy.t line 101.
#                   ''
#     doesn't match '(?^:Copying a symlink \(/tmp/6XcQ5nXz2w/xsym\) whose target does not exist)'

#   Failed test 'Got expected number of directories, files and symlinks by copying'
#   at t/003-rcopy.t line 629.
#     Structures begin differing at:
#          $got->{files} = '9'
#     $expected->{files} = '6'
# Looks like you failed 7 tests of 188.
t/003-rcopy.t .... Dubious, test returned 7 (wstat 1792, 0x700)
Failed 7/188 subtests
        (less 56 skipped subtests: 125 okay)

Test Summary Report
-------------------
t/001-fcopy.t  (Wstat: 1536 Tests: 85 Failed: 6)
  Failed tests:  10-11, 15-17, 20
  Non-zero exit status: 6
t/002-dircopy.t (Wstat: 768 Tests: 115 Failed: 3)
  Failed tests:  82, 88-89
  Non-zero exit status: 3
t/003-rcopy.t  (Wstat: 1792 Tests: 188 Failed: 7)
  Failed tests:  10-11, 15-17, 20, 162
  Non-zero exit status: 7
Files=3, Tests=388,  4 wallclock secs ( 0.08 usr  0.08 sys +  0.76 cusr  2.23 csys =  3.15 CPU)
Result: FAIL
Failed 3/3 test programs. 16/388 subtests failed.
make: *** [Makefile:889: test_dynamic] Error 7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions