Ignore:
Timestamp:
Dec 7, 2008, 11:30:27 PM (12 years ago)
Author:
Dominic Hargreaves
Message:

Ensure that the unit test cleans up its temporary file (RT #41500; thanks ANDK)

Location:
wiki-toolkit-plugin-rss-reader/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wiki-toolkit-plugin-rss-reader/trunk/CHANGES

    r281 r480  
     1            1.6
     2            * Ensure that the unit test cleans up its temporary file
     3              (RT #41500; thanks ANDK)
     4
    152006-05-14: 1.5
    26            * Move to Wiki::Toolkit name.
  • wiki-toolkit-plugin-rss-reader/trunk/t/rss.t

    r281 r480  
    5757# earlier in the fake LWP::Simple.
    5858
    59 use File::Temp qw(tempfile);
    60 my ($tmp, $rss_file) = tempfile();
     59use File::Temp;
     60# Use OO version of File::Temp; file will be unlinked when $tmp goes
     61# out of scope
     62my $tmp = new File::Temp;
     63my $rss_file = $tmp->filename;
    6164print $tmp $LWP::Simple::RSS;
    6265close $tmp;
Note: See TracChangeset for help on using the changeset viewer.