#
# Create a temporary directory, and make sure it is present.
#
- my $dir = File::Temp::tempdir( CLEANUP => 0 );
+ my $dir = File::Temp::tempdir( CLEANUP => 1 );
ok ( -d $dir, "The temporary directory was created: $dir" );
#
my @LINES = <OUTPUT>;
close( OUTPUT );
- return( join( "\n", @LINES ) );
+ return( join( "\n", @LINES ), $dir );
}
my ( $text, %params ) = ( @_ );
# Get the output of running the command.
- my $output = runCreateCommand( %params );
+ my ($output, $dir) = runCreateCommand( %params );
#
# Look to see if we got the text.
my ( $text, %params ) = ( @_ );
# Get the output of running the command.
- my $output = runCreateCommand( %params );
+ my ($output, $dir) = runCreateCommand( %params );
#
# Look to see if we got the text.