Skip Menu |
 

This queue is for tickets about the File-Copy-Recursive CPAN distribution.

Report information
The Basics
Id: 123964
Status: open
Priority: 0/
Queue: File-Copy-Recursive

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Tests fail on freebsd systems (0.39)
Download (untitled) / with headers
text/plain 289b
On all my freebsd smokers (from version 9 to 12): ... # Failed test 'fcopy() returns false if source is a directory' # at t/01.legacy.t line 76. # Looks like you failed 1 test of 301. t/01.legacy.t ............. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/301 subtests ...
thanks! will look into it (and the others one) ASAP! much appreciated ;)
Download (untitled) / with headers
text/plain 384b
thanks! will rectify ASAP :) On Fri Dec 29 15:20:28 2017, SREZIC wrote: Show quoted text
> On all my freebsd smokers (from version 9 to 12): > > ... > # Failed test 'fcopy() returns false if source is a directory' > # at t/01.legacy.t line 76. > # Looks like you failed 1 test of 301. > t/01.legacy.t ............. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/301 subtests > ...
Download (untitled) / with headers
text/plain 732b
On Fri Dec 29 15:20:28 2017, SREZIC wrote: Show quoted text
> On all my freebsd smokers (from version 9 to 12): > > ... > # Failed test 'fcopy() returns false if source is a directory' > # at t/01.legacy.t line 76. > # Looks like you failed 1 test of 301. > t/01.legacy.t ............. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/301 subtests > ...
I am unable to reproduce ATM, what does this output on one of these boxes: mkdir rt123964; perl -Ilib -MFile::Copy::Recursive -e 'print "-",File::Copy::Recursive::fcopy("rt123964","whatevs"), "- ($File::Copy::Recursive::VERSION)\n"' If it returns true, can you add some debuggery to see where it is returning true? that will help make it apparent what is falling down. Thanks!
Download (untitled) / with headers
text/plain 1007b
On 2018-01-16 12:28:42, DMUEY wrote: Show quoted text
> On Fri Dec 29 15:20:28 2017, SREZIC wrote:
> > On all my freebsd smokers (from version 9 to 12): > > > > ... > > # Failed test 'fcopy() returns false if source is a directory' > > # at t/01.legacy.t line 76. > > # Looks like you failed 1 test of 301. > > t/01.legacy.t ............. > > Dubious, test returned 1 (wstat 256, 0x100) > > Failed 1/301 subtests > > ...
> > I am unable to reproduce ATM, what does this output on one of these > boxes: > > mkdir rt123964; perl -Ilib -MFile::Copy::Recursive -e 'print "- > ",File::Copy::Recursive::fcopy("rt123964","whatevs"), "- > ($File::Copy::Recursive::VERSION)\n"' > > If it returns true, can you add some debuggery to see where it is > returning true? that will help make it apparent what is falling down. >
On a FreeBSD 12 system: $ mkdir rt123964; perl -Ilib -MFile::Copy::Recursive -e 'print "-",File::Copy::Recursive::fcopy("rt123964","whatevs"), "- ($File::Copy::Recursive::VERSION)\n"' -100- (0.40)
Download (untitled) / with headers
text/plain 1.4k
On 2018-01-16 14:51:45, SREZIC wrote: Show quoted text
> On 2018-01-16 12:28:42, DMUEY wrote:
> > On Fri Dec 29 15:20:28 2017, SREZIC wrote:
> > > On all my freebsd smokers (from version 9 to 12): > > > > > > ... > > > # Failed test 'fcopy() returns false if source is a directory' > > > # at t/01.legacy.t line 76. > > > # Looks like you failed 1 test of 301. > > > t/01.legacy.t ............. > > > Dubious, test returned 1 (wstat 256, 0x100) > > > Failed 1/301 subtests > > > ...
> > > > I am unable to reproduce ATM, what does this output on one of these > > boxes: > > > > mkdir rt123964; perl -Ilib -MFile::Copy::Recursive -e 'print "- > > ",File::Copy::Recursive::fcopy("rt123964","whatevs"), "- > > ($File::Copy::Recursive::VERSION)\n"' > > > > If it returns true, can you add some debuggery to see where it is > > returning true? that will help make it apparent what is falling down. > >
> > On a FreeBSD 12 system: > > $ mkdir rt123964; perl -Ilib -MFile::Copy::Recursive -e 'print "- > ",File::Copy::Recursive::fcopy("rt123964","whatevs"), "- > ($File::Copy::Recursive::VERSION)\n"' > -100- (0.40)
The difference between FreeBSD and Linux: on FreeBSD it's possible to sysread from a directory handle. The following oneliner behaves differently: FreeBSD: $ perl -Mautodie -Mstrict -e 'open my $fh, "rt123964"; sysread($fh,my($buf),512)' (no error) Linux: $ perl -Mautodie -Mstrict -e 'open my $fh, "rt123964"; sysread($fh,my($buf),512)' Can't sysread(GLOB(0x13b7ac0), <BUFFER>, 512): Is a directory at -e line 1
Download (untitled) / with headers
text/plain 719b
Show quoted text
> > On a FreeBSD 12 system: > > > > $ mkdir rt123964; perl -Ilib -MFile::Copy::Recursive -e 'print "- > > ",File::Copy::Recursive::fcopy("rt123964","whatevs"), "- > > ($File::Copy::Recursive::VERSION)\n"' > > -100- (0.40)
> > The difference between FreeBSD and Linux: on FreeBSD it's possible to > sysread from a directory handle. The following oneliner behaves > differently: > > FreeBSD: > $ perl -Mautodie -Mstrict -e 'open my $fh, "rt123964"; > sysread($fh,my($buf),512)' > (no error) > > Linux: > $ perl -Mautodie -Mstrict -e 'open my $fh, "rt123964"; > sysread($fh,my($buf),512)' > Can't sysread(GLOB(0x13b7ac0), <BUFFER>, 512): Is a directory at -e > line 1
awesome, thanks! that's a good starting point :)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.