Skip to content

Commit

Permalink
Remove some debugging diag() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Jul 24, 2023
1 parent 122eb2c commit ed2fa07
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions t/cp/gh-115-copy-into-dir.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@ sanity_test($Program);

my $starting_dir = getcwd();
my $program_path = catfile( $starting_dir, $Program );
diag( "Starting working dir is $starting_dir" );
diag( "Program path is $program_path" );

my $test_file = 'a.txt';
my $dir = tempdir( CLEANUP => 1 );
ok( chdir $dir, 'Was able to change into temporary directory' );
diag( "Current working dir is " . getcwd() );

my $subdir = 'child';
make_path $subdir;
Expand Down Expand Up @@ -59,7 +56,6 @@ subtest 'same directory' => sub {
);
ok -e $second_filename, "$second_filename exists";
my @files = glob '*';
diag( "Files in current working dir are <@files>" );

unlink $second_filename;
ok ! -e $second_filename, "$second_filename removed at end of test";
Expand All @@ -82,7 +78,6 @@ subtest 'into directory' => sub {
my $target = catfile( $subdir, $filename );
ok -e $target, "$target exists";
my @files = glob '* */*';
diag( "Files in current working dir are <@files>" );

unlink $target;
ok ! -e $target, "$target removed at end of test";
Expand Down
1 change: 0 additions & 1 deletion t/rm/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ is( $class, 'PerlPowerTools::rm' );


my $dir = File::Temp::tempdir( CLEANUP => 1 );
diag( "temp dir is $dir" );
chdir $dir or BAIL_OUT( "Could not change to $dir: $!" );


Expand Down

0 comments on commit ed2fa07

Please sign in to comment.