drmuey / p5-File-Copy-Recursive

Perl extension for recursively copying files and directories
5 stars 12 forks source link

Windows 10, MSYS2 failed test 'rcopy_glob() calls rcopy for each file in the glob' #31

Open hakonhagland opened 4 years ago

hakonhagland commented 4 years ago

System: Windows 10, MSYS2, perl version 5.32.0.

$ 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/00.load.t ............... ok
t/01.legacy.t ............. 4/?
#   Failed test 'rcopy_glob() calls rcopy for each file in the glob'
#   at t/01.legacy.t line 184.
#          got: '3'
#     expected: '4'

#   Failed test 'rmove_glob() calls rmove for each file in the glob'
#   at t/01.legacy.t line 193.
#          got: '3'
#     expected: '4'
t/01.legacy.t ............. 100/? # Looks like you failed 2 tests of 108.
t/01.legacy.t ............. Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/108 subtests
        (less 8 skipped subtests: 98 okay)
t/02.legacy-symtogsafe.t .. ok
t/03.github-issue-5.t ..... ok
t/04.readonly-dir.t ....... ok
t/05.legacy-pathmk_unc.t .. skipped: Test irrelevant on non-windows OSs

Test Summary Report
-------------------
t/01.legacy.t           (Wstat: 512 Tests: 108 Failed: 2)
  Failed tests:  60-61
  Non-zero exit status: 2
Files=6, Tests=150, 12 wallclock secs ( 0.12 usr  0.06 sys +  1.54 cusr  3.20 csys =  4.92 CPU)
Result: FAIL
Failed 1/6 test programs. 2/150 subtests failed.
make: *** [Makefile:881: test_dynamic] Error 255
blues1875 commented 2 years ago

I just hit the same problem, building on Windows 10 under perl 5.36.0. After reading the blog post referred to in https://github.com/drmuey/p5-File-Copy-Recursive/pull/32, I was able to build cleanly with a non-administrator account by turning on Developer Mode in Settings | Update & Security | For Developers