Changeset 480

Show
Ignore:
Timestamp:
12/07/08 23:30:27 (3 years ago)
Author:
dom
Message:

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

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

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;