diff --git a/t/cp/gh-115-copy-into-dir.t b/t/cp/gh-115-copy-into-dir.t index 14dc021e..8cbc5197 100644 --- a/t/cp/gh-115-copy-into-dir.t +++ b/t/cp/gh-115-copy-into-dir.t @@ -50,10 +50,9 @@ subtest 'same directory' => sub { is $rc, 0, 'system exited with 0' or diag( "system failed:\n\t$!\n\t$^E" ); - ok -e $second_filename, "$second_filename exists" or do { - my @files = glob '*'; - diag( "Files in current working dir are <@files>" ); - }; + ok -e $second_filename, "$second_filename exists"; + my @files = glob '*'; + diag( "Files in current working dir are <@files>" ); }; =pod @@ -67,10 +66,9 @@ subtest 'into directory' => sub { is $rc, 0, 'system exited with 0' or diag( "system failed:\n\t$!\n\t$^E" ); - ok -e catfile( $subdir, $filename ), "$subdir/$second_filename exists" or do { - my @files = glob '*'; - diag( "Files in current working dir are <@files>" ); - }; + ok -e catfile( $subdir, $filename ), "$subdir/$second_filename exists"; + my @files = glob '*'; + diag( "Files in current working dir are <@files>" ); }; done_testing();