-BEGIN PGP SIGNED MESSAGE-
Moin,
On 08-Nov-01 Craig A. Berry tried to scribble about:
> At 7:39 PM -1000 11/7/01, Tim Jenness wrote:
>>On Wed, 7 Nov 2001, Craig A. Berry wrote:
[snip]
> Well, here's that complete test before my modifications:
> {
> for my $test (0, 1) {
> $!
At 7:39 PM -1000 11/7/01, Tim Jenness wrote:
>On Wed, 7 Nov 2001, Craig A. Berry wrote:
>
> > I think it's supposed to verify that dynaloading has
> > not set errno, but for us it does:
>
>Are you sure it's not meant to be testing that POSIX::errno equals the
>numeric value of $! ? Or is there ano
At 11:56 AM 11/7/2001 -1000, Tim Jenness wrote:
>> not ok 28 # POSIX::errno(): 20, $!: 0
>>
>> which I think means autoloading sets errno but isn't supposed to. I suspect
>> it's doing a -d somewhere and leaving an errno of ENOTDIR laying about. Hmm.
>>
>
>Well, $! is meant to be exactly er
> - my $foo = $!;
> + my $foo = 0 + $!; # force numeric
> my $errno = POSIX::errno();
> print "not " unless $errno == $foo;
> - print "ok ", 28 + $test, " # POSIX::errno(): $errno, \$!: $!\n";
> + print "ok ", 28 + $test, " # POSIX::errno(): $errno, \$!:
At 09:53 PM 11/7/2001 +0100, Tels wrote:
>So, if I read Tim correctly, make that my $foo = $! + 0; and it might
>pass the test. Needs probably a bit more munging to print the $! in
>numeric context as well as $foo after a failure.
Thanks Tels and Tim. With the following additional change:
---
On Wed, 7 Nov 2001, Craig A. Berry wrote:
> I've made some progress getting this test to run (see working patch below)
> but I still get one failure:
>
> not ok 28 # POSIX::errno(): 20, $!: not a directory
>
> 20 is the correct value for ENOTDIR, but how can POSIX::errno() and $! be
> expecte
I've made some progress getting this test to run (see working patch below)
but I still get one failure:
not ok 28 # POSIX::errno(): 20, $!: not a directory
20 is the correct value for ENOTDIR, but how can POSIX::errno() and $! be
expected to be numerically equal when $! returns a string? Or i