- Timestamp:
- 11/11/11 13:17:43 (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/router/proftpd/tests/t/lib/ProFTPD/Tests/Config/StoreUniquePrefix.pm
r14672 r17876 2 2 3 3 use lib qw(t/lib); 4 use base qw( Test::Unit::TestCaseProFTPD::TestSuite::Child);4 use base qw(ProFTPD::TestSuite::Child); 5 5 use strict; 6 6 7 use File::Path qw(mkpath rmtree);8 7 use File::Spec; 9 8 use IO::Handle; … … 29 28 sub list_tests { 30 29 return testsuite_get_runnable_tests($TESTS); 31 }32 33 sub set_up {34 my $self = shift;35 $self->{tmpdir} = testsuite_get_tmp_dir();36 37 # Create temporary scratch dir38 eval { mkpath($self->{tmpdir}) };39 if ($@) {40 my $abs_path = File::Spec->rel2abs($self->{tmpdir});41 die("Can't create dir $abs_path: $@");42 }43 }44 45 sub tear_down {46 my $self = shift;47 48 # Remove temporary scratch dir49 if ($self->{tmpdir}) {50 eval { rmtree($self->{tmpdir}) };51 }52 53 undef $self;54 30 } 55 31
Note: See TracChangeset
for help on using the changeset viewer.
