Ignore:
Timestamp:
11/11/11 13:17:43 (19 months ago)
Author:
BrainSlayer
Message:

update proftp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/proftpd/tests/t/lib/ProFTPD/Tests/Config/FTPAccess/DELE.pm

    r14672 r17876  
    22 
    33use lib qw(t/lib); 
    4 use base qw(Test::Unit::TestCase ProFTPD::TestSuite::Child); 
     4use base qw(ProFTPD::TestSuite::Child); 
    55use strict; 
    66 
    7 use File::Path qw(mkpath rmtree); 
     7use File::Path qw(mkpath); 
    88use File::Spec; 
    99use IO::Handle; 
     
    3131  return testsuite_get_runnable_tests($TESTS); 
    3232} 
    33  
    34 sub set_up { 
    35   my $self = shift; 
    36   $self->{tmpdir} = testsuite_get_tmp_dir(); 
    37  
    38   # Create temporary scratch dir 
    39   eval { mkpath($self->{tmpdir}) }; 
    40   if ($@) { 
    41     my $abs_path = File::Spec->rel2abs($self->{tmpdir}); 
    42     die("Can't create dir $abs_path: $@"); 
    43   } 
    44 } 
    45  
    46 sub tear_down { 
    47   my $self = shift; 
    48  
    49   # Remove temporary scratch dir 
    50   if ($self->{tmpdir}) { 
    51     eval { rmtree($self->{tmpdir}) }; 
    52   } 
    53  
    54   undef $self; 
    55 }; 
    5633 
    5734sub dele_bug2321 { 
Note: See TracChangeset for help on using the changeset viewer.