Intrepid has asked for the wisdom of the Perl Monks concerning the following question:

(SBP means "Strawberry Perl")

I am not thoroughly knowledgeable about the NTFS (my Windows 11 filesystem is NTFS), but it appears there's a portability gotcha in File::Copy::Recursive::Reduced, as illustrated in the console output below:

"C:\berrybrew\instance\5.40.2_64\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
Unable to symlink C:\Users\somia\AppData\Local\Temp\_VXLTq6lRt\sym to target C:\Users\somia\AppData\Local\Temp\_VXLTq6lRt\old for testing: Operation not permitted at t/001-fcopy.t line 71.
# Looks like your test exited with 1 just after 9.
t/001-fcopy.t ....
Dubious, test returned 1 (wstat 256, 0x100)
Failed 76/85 subtests
        (less 1 skipped subtest: 8 okay)
Unable to symlink at t/lib/Helper.pm line 179.
# Looks like your test exited with 1 just after 77.
t/002-dircopy.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 38/115 subtests
        (less 1 skipped subtest: 76 okay)
Unable to symlink C:\Users\somia\AppData\Local\Temp\6cvtKrEDFd\sym to target C:\Users\somia\AppData\Local\Temp\6cvtKrEDFd\old for testing: Operation not permitted at t/003-rcopy.t line 78.
# Looks like your test exited with 1 just after 9.
t/003-rcopy.t ....
Dubious, test returned 1 (wstat 256, 0x100)
Failed 179/188 subtests
        (less 1 skipped subtest: 8 okay)

I was not actually aiming to test or install File::Copy::Recursive::Reduced, but it was a dependency for Mouse.

As always, I will greatly appreciate any knowledge and insights. Thanks, good monks.

Dec 02, 2025 at 03:05 UTC

A just machine to make big decisions
Programmed by fellows (and gals) with compassion and vision
We'll be clean when their work is done
We'll be eternally free yes, and eternally young
Donald Fagen —> I.G.Y.
(Slightly modified for inclusiveness)

  • Comment on Windows, SBP, 'File::Copy::Recursive::Reduced' fails its tests due to permissions

Replies are listed 'Best First'.
Re: Windows, SBP, 'File::Copy::Recursive::Reduced' fails its tests due to permissions
by ikegami (Patriarch) on Dec 02, 2025 at 17:09 UTC

    The CPAN testers results for Windows are a mix of successes and failures like yours.

    It fails for me as well.

    There's no reported bugs.

    I thought it might be a difference in C runtime, but I see passes for both cl and gcc, and I see failures for both cl and gcc. I would expect all cl builds to behave the same if that was the case.

    I don't have time to look further into the differences between the builds at this time.

    PS — If you read the docs for File::Copy::Recursive::Reduced, it was written to address one or more ongoing unfixed issues in critical ("high upstream") module File::Copy::Recursive. Now it's File::Copy::Recursive::Reduced in that position.

      Hi ikegami. Thanks for your reply. I totally understand if you don't have time at present to investigate further.

      I did not look at RT before posting my node, bad me, I should know by now that I must always do that before I post if I'm going to offer these "so-and-so doesn't work" postings.

      PS — If you read the docs for File::Copy::Recursive::Reduced, it was written to address one or more ongoing unfixed issues in critical ("high upstream") module File::Copy::Recursive. Now it's File::Copy::Recursive::Reduced in that position.

      I was just a little late off the starting line on this one - just before seeing this reply from you I was reading the POD for said module. You are quite correct. But File::Copy::Recursive is still failing tests (on MSWin32 and Dragonfly BSD), though, so both the original module and the "fixed" module, are, as you say, in that position. This is not good.

      On my Gnu/Linux system I have File::Copy::Recursive v0.45, and on StrawberryPerl the same.

          — Regards, Soren
      Dec 03, 2025 at 18:01 UTC