Skip to content

Tests fails on Windows 10, MSYS2 #22

@hakonhagland

Description

@hakonhagland

System: Windows 10, MSYS2, perl version 5.32.0 :

$ cpanm -v Test::File
cpanm (App::cpanminus) 1.7044 on perl 5.032000 built for x86_64-msys-thread-multi
Work directory is /home/hakon/.cpanm/work/1595166881.25026
You have make /usr/bin/make
You have LWP 6.46
You have /usr/bin/tar: tar (GNU tar) 1.32
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
Searching Test::File () on cpanmetadb ...
--> Working on Test::File
Fetching http://www.cpan.org/authors/id/B/BD/BDFOY/Test-File-1.443.tar.gz ... OK
Unpacking Test-File-1.443.tar.gz
Test-File-1.443/
Test-File-1.443/Changes
Test-File-1.443/examples/
Test-File-1.443/INSTALL.SKIP
Test-File-1.443/lib/
Test-File-1.443/LICENSE
Test-File-1.443/Makefile.PL
Test-File-1.443/MANIFEST
Test-File-1.443/MANIFEST.SKIP
Test-File-1.443/META.json
Test-File-1.443/META.yml
Test-File-1.443/README.pod
Test-File-1.443/t/
Test-File-1.443/xt/
Test-File-1.443/xt/changes.t
Test-File-1.443/t/dm_skeleton.t
Test-File-1.443/t/file_contains.t
Test-File-1.443/t/file_contains_encoded.t
Test-File-1.443/t/file_contains_utf8.t
Test-File-1.443/t/file_mtime.t
Test-File-1.443/t/file_sizes.t
Test-File-1.443/t/line_counters.t
Test-File-1.443/t/link_counts.t
Test-File-1.443/t/links.t
Test-File-1.443/t/load.t
Test-File-1.443/t/normalize.t
Test-File-1.443/t/obviously_non_multi_user.t
Test-File-1.443/t/owner.t
Test-File-1.443/t/pod.t
Test-File-1.443/t/pod_coverage.t
Test-File-1.443/t/rt/
Test-File-1.443/t/setup_common
Test-File-1.443/t/test_dirs.t
Test-File-1.443/t/test_files.t
Test-File-1.443/t/test_manifest
Test-File-1.443/t/win32.t
Test-File-1.443/t/rt/30346.t
Test-File-1.443/lib/Test/
Test-File-1.443/lib/Test/File.pm
Test-File-1.443/examples/README
Entering Test-File-1.443
Checking configure dependencies from META.json
Checking if you have File::Spec::Functions 0 ... Yes (3.78)
Checking if you have ExtUtils::MakeMaker 6.64 ... Yes (7.44)
Running Makefile.PL
Configuring Test-File-1.443 ... Checking if your kit is complete...
Looks good
WARNING: Older versions of ExtUtils::MakeMaker may errantly install README.pod as part of this distribution. It is recommended to avoid using this path in CPAN modules.
Generating a Unix-style Makefile
Writing Makefile for Test::File
Writing MYMETA.yml and MYMETA.json
OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::utf8 0 ... Yes (1.02)
Checking if you have Test::Builder::Tester 1.04 ... Yes (1.302175)
Checking if you have Test::More 0.95 ... Yes (1.302175)
Checking if you have Test::Builder 1.001006 ... Yes (1.302175)
Building and testing Test-File-1.443 ... cp lib/Test/File.pm blib/lib/Test/File.pm
Manifying 1 pod document
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/dm_skeleton.t ............... 1/?     # MSWin32
    # Looks like you planned 0 tests but ran 2.
    # Looks like you planned 0 tests but ran 2.
t/dm_skeleton.t ............... ok
t/file_contains.t ............. 1/?
#   Failed test at t/file_contains.t line 37.
# STDERR is:
# > #   Failed test 'not_readable contains (?^:(?mx:^ xxxxxxxxxxx    $))'
# > #   at t/file_contains.t line 36.
# > #                   ''
# > #     doesn't match '(?^:(?mx:^ xxxxxxxxxxx    $))'
# not:
# > # File [not_readable] is not readable!
# > /#\s+Failed\ test.*?\n?.*?at\ t\/file_contains\.t line 36.*\n?/
# >
# >
# as expected

#   Failed test at t/file_contains.t line 65.
# STDOUT is:
# > ok 1 - not_readable doesn't contain (?^:(?mx:^ xxxxxxxxxxxxxxxxxxxx $))
# not:
# > not ok 1 - not_readable doesn't contain (?^:(?mx:^ xxxxxxxxxxxxxxxxxxxx $))
# as expected
# STDERR is:
# >
# >
# not:
# > # File [not_readable] is not readable!
# > /#\s+Failed\ test.*?\n?.*?at\ t\/file_contains\.t line 64.*\n?/
# as expected

#   Failed test at t/file_contains.t line 99.
# STDOUT is:
#   not ok 1 - not_readable contains (?^:(?mx:^ xxxxxxxxxxx    $))
# > not ok 2 - not_readable contains (?^:(?mx:^ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    $))
# not:
#   not ok 1 - not_readable contains (?^:(?mx:^ xxxxxxxxxxx    $))
# >
# as expected
# STDERR is:
# > #   Failed test 'not_readable contains (?^:(?mx:^ xxxxxxxxxxx    $))'
# > #   at t/file_contains.t line 98.
# > #                   ''
# > #     doesn't match '(?^:(?mx:^ xxxxxxxxxxx    $))'
# > #   Failed test 'not_readable contains (?^:(?mx:^ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    $))'
# > #   at t/file_contains.t line 98.
# > #                   ''
# > #     doesn't match '(?^:(?mx:^ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    $))'
# not:
# > # File [not_readable] is not readable!
# > /#\s+Failed\ test.*?\n?.*?at\ t\/file_contains\.t line 98.*\n?/
# >
# >
# >
# >
# >
# >
# as expected

#   Failed test at t/file_contains.t line 134.
# STDOUT is:
# > ok 1 - not_readable doesn't contain (?^:(?mx:^ xxxxxxxxxxxxxxxxxxxx $))
# > ok 2 - not_readable doesn't contain (?^:(?mx:^ xxxxxxxxxxxxxxxxxxxx $))
# not:
# > not ok 1 - not_readable doesn't contain (?^:(?mx:^ xxxxxxxxxxxxxxxxxxxx $))
# >
# as expected
# STDERR is:
# >
# >
# not:
# > # File [not_readable] is not readable!
# > /#\s+Failed\ test.*?\n?.*?at\ t\/file_contains\.t line 133.*\n?/
# as expected
t/file_contains.t ............. Failed 4/23 subtests
t/file_contains_encoded.t ..... ok
t/file_contains_utf8.t ........ ok
t/file_mtime.t ................ ok
t/file_sizes.t ................ 1/?     # Looks like you planned 0 tests but ran 5.
    # Looks like you planned 0 tests but ran 7.
    # Looks like you planned 0 tests but ran 6.
t/file_sizes.t ................ ok
t/line_counters.t ............. 1/?     # Looks like you planned 0 tests but ran 5.
    # Looks like you planned 0 tests but ran 6.
    # Looks like you planned 0 tests but ran 4.
    # Looks like you planned 0 tests but ran 4.
t/line_counters.t ............. ok
t/link_counts.t ............... 1/?     # Looks like you planned 0 tests but ran 2.
    # Looks like you planned 0 tests but ran 3.
t/link_counts.t ............... ok
t/links.t ..................... 1/?     # Looks like you planned 0 tests but ran 8.
t/links.t ..................... 7/?     # Looks like you planned 0 tests but ran 12.
    # Looks like you planned 0 tests but ran 7.
    # Looks like you planned 0 tests but ran 2.
    # Looks like you planned 0 tests but ran 1.
    # Looks like you planned 0 tests but ran 1.
t/links.t ..................... ok
t/load.t ...................... ok
t/normalize.t ................. ok
t/obviously_non_multi_user.t .. ok
t/owner.t ..................... ok
t/pod.t ....................... ok
t/pod_coverage.t .............. skipped: Test::Pod::Coverage required for testing POD
t/test_dirs.t ................. ok
t/test_files.t ................ 1/?
#   Failed test at t/test_files.t line 33.
# STDOUT is:
# > not ok 1 - writeable is not readable
# not:
# > ok 1 - writeable is not readable
# as expected
# STDERR is:
# > # File [writeable] is readable!
# > #   Failed test 'writeable is not readable'
# > #   at t/test_files.t line 32.
# not:
# >
# >
# >
# as expected

#   Failed test at t/test_files.t line 54.
# STDOUT is:
# > not ok 1 - executable is executable
# not:
# > ok 1 - executable is executable
# as expected
# STDERR is:
# > # File [executable] is not executable!
# > #   Failed test 'executable is executable'
# > #   at t/test_files.t line 53.
# not:
# >
# >
# >
# as expected

#   Failed test at t/test_files.t line 72.
# STDOUT is:
# > not ok 1 - executable mode is 0100
# not:
# > ok 1 - executable mode is 0100
# as expected
# STDERR is:
# > # File [executable] mode is not 0100!
# > #   Failed test 'executable mode is 0100'
# > #   at t/test_files.t line 71.
# not:
# >
# >
# >
# as expected

#   Failed test at t/test_files.t line 81.
# STDOUT is:
# > not ok 1 - executable mode has all bits of 0100
# not:
# > ok 1 - executable mode has all bits of 0100
# as expected
# STDERR is:
# > # File [executable] mode is missing component 0100!
# > #   Failed test 'executable mode has all bits of 0100'
# > #   at t/test_files.t line 80.
# not:
# >
# >
# >
# as expected

#   Failed test at t/test_files.t line 98.
# STDERR is:
# > # File [executable] mode is missing component 0111!
#   #   Failed test 'executable mode has all bits of 0111'
#   #   at t/test_files.t line 96.
# not:
# > # File [executable] mode is missing component 0011!
#   #   Failed test 'executable mode has all bits of 0111'
#   #   at t/test_files.t line 96.
# as expected

#   Failed test at t/test_files.t line 133.
# STDOUT is:
# > ok 1 - executable mode has no bits of 0111
# not:
# > not ok 1 - executable mode has no bits of 0111
# as expected
# STDERR is:
# >
# >
# >
# not:
# > # File [executable] mode has forbidden component 0100!
# > #   Failed test 'executable mode has no bits of 0111'
# > #   at t/test_files.t line 131.
# as expected

#   Failed test at t/test_files.t line 142.
# STDOUT is:
# > not ok 1 - readable mode is 0400
# not:
# > ok 1 - readable mode is 0400
# as expected
# STDERR is:
# > # File [readable] mode is not 0400!
# > #   Failed test 'readable mode is 0400'
# > #   at t/test_files.t line 141.
# not:
# >
# >
# >
# as expected

#   Failed test at t/test_files.t line 160.
# STDOUT is:
# > not ok 1 - writeable mode is 0200
# not:
# > ok 1 - writeable mode is 0200
# as expected
# STDERR is:
# > # File [writeable] mode is not 0200!
# > #   Failed test 'writeable mode is 0200'
# > #   at t/test_files.t line 159.
# not:
# >
# >
# >
# as expected
t/test_files.t ................ Failed 8/23 subtests
t/win32.t ..................... 1/?     # Looks like you planned 0 tests but ran 4.
t/win32.t ..................... ok

Test Summary Report
-------------------
t/file_contains.t           (Wstat: 0 Tests: 23 Failed: 4)
  Failed tests:  8, 12, 17, 22
t/test_files.t              (Wstat: 0 Tests: 23 Failed: 8)
  Failed tests:  9, 12, 14-16, 19-20, 22
Files=18, Tests=190, 19 wallclock secs ( 0.12 usr  0.09 sys +  2.79 cusr  3.98 csys =  6.99 CPU)
Result: FAIL
Failed 2/18 test programs. 12/190 subtests failed.
make: *** [Makefile:900: test_dynamic] Error 255
FAIL
! Installing Test::File failed. See /home/hakon/.cpanm/work/1595166881.25026/build.log for details. Retry with --force to force install it.

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