On Sat, 8 Jun 2002 [EMAIL PROTECTED] wrote:

> --
>
> Failed test 5 in t/40profile.t at line 55, probably
> due to a peculiarity of Win32 that, eg
>
> open(JUNK, ">junk");
> print JUNK "jajjkajkasdjka\n";
> #close JUNK;
> print "Size of junk is ", -s 'junk', "\n";
>
> will report the file has 0 size unless the
> "close JUNK" is uncommented.

That's not quite right - sorry about that. This one's better:

use strict;
unlink 'junk';
open(JUNK, ">>junk");
print JUNK "JAJJSDS" x 10000;
#close JUNK;
print "Size is ", -s 'junk', "\n";

With 'close JUNK' commented, on linux, this reports a non-zero
size, while on Win32, it's reported as zero. This seems to be
what's happening with t/40profile.t - on Win32, the size of the
logfile is reported as zero, even though it is capturing stuff.

best regards,
randy

Reply via email to