develooper Front page | perl.perl5.porters | Postings from July 2009

Re: [perl #67912] syswrite prints garbage if called with empty scalar and non-zero offset

Thread Previous
From:
Nicholas Clark
Date:
July 28, 2009 09:02
Subject:
Re: [perl #67912] syswrite prints garbage if called with empty scalar and non-zero offset
Message ID:
20090728160229.GZ60303@plum.flirble.org
On Mon, Jul 27, 2009 at 03:35:02PM +0300, Offer Kaye wrote:
> On Mon, Jul 27, 2009 at 2:02 PM, chromatic wrote:
> >
> > Confirmed in blead.  This looks like a fencepost error.  With the included
> > patch, I get instead an error:
> >
> 
> Maybe we should add a test for this, perhaps in t/op/sysio.t? I
> thought something like the attached patch (not tested).
> 
> Unrelated question - looking at t/op/sysio.t I don't understand, why
> doesn't it use Test::More?

There's a bootstrapping order on tests. The initial tests run avoid relying
on complex constructions such as packages and OO, so that we get clear
failure diagnostics if we introduce a bug that makes them fail.

Nicholas Clark

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About