Skip to content

Commit

Permalink
Try harder with diag
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Jun 22, 2023
1 parent dabdd9a commit 71e105e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions t/cp/gh-115-copy-into-dir.t
Expand Up @@ -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
Expand All @@ -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();

0 comments on commit 71e105e

Please sign in to comment.