Changeset 4437
- Timestamp:
- Jun 29, 2005, 3:41:40 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous/t/Test/Nebulous.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/t/Test/Nebulous.pm
r3016 r4437 1 1 # Copyright (C) 2004 Joshua Hoblitt 2 2 # 3 # $Id: Nebulous.pm,v 1. 2 2005-01-15 04:02:12jhoblitt Exp $3 # $Id: Nebulous.pm,v 1.3 2005-06-30 01:41:40 jhoblitt Exp $ 4 4 5 5 package Test::IData; … … 17 17 my $dbh = DBI->connect( $dsn, $user, $passwd ); 18 18 19 #my $dir1 = tempdir( CLEANUP => 0 ); 20 #my $dir2 = tempdir( CLEANUP => 0 ); 21 22 my $dir1 = "/tmp/foo1"; 23 my $dir2 = "/tmp/foo1"; 24 19 # suppress uninitalized warnings 20 my $dir1 = ""; 21 my $dir2 = ""; 25 22 26 23 sub setup { … … 29 26 $self->cleanup; 30 27 31 mkpath([$dir1, $dir2]); 28 # create directories after cleanup 29 $dir1 = tempdir( CLEANUP => 0 ); 30 $dir2 = tempdir( CLEANUP => 0 ); 32 31 33 32 local $/ = ';'; … … 54 53 $dbh->do( "DROP TABLE IF EXISTS class" ); 55 54 56 rmtree([$dir1, $dir2], 0, 1); 55 # on the first call to setup the $dir[12] will be "" 56 rmtree([$dir1], 0, 1) if -e $dir1; 57 rmtree([$dir2], 0, 1) if -e $dir2; 57 58 } 58 59
Note:
See TracChangeset
for help on using the changeset viewer.
