Shlomi Fish wrote:

I recently received a failure report from several machines while
testing the new Config-IniFiles version 2.64 on Win32:

http://www.cpantesters.org/cpan/report/fb07a351-72c6-1014-a617-6c529855645b

It seems that File::Temp is broken there and the two tests that use it
failed as a result. Please fix it there.

It's not broken, you're using it wrong.

    # TEST
    my ($newfh, $newfilename) = tempfile();
    my $content;
    $ini->WriteConfig($newfilename);

$newfh is opened filehandle for $newfilename, and you're trying to open this 
file again in your code.
You should close $newfh first, if you're going to use $newfilename and not 
$newfh.


--
Serguei Trouchelle

Reply via email to