Skip to content

Commit

Permalink
show the files in the dir after the operation
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Jun 22, 2023
1 parent 746d690 commit dabdd9a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions t/cp/gh-115-copy-into-dir.t
Expand Up @@ -50,7 +50,10 @@ 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";
ok -e $second_filename, "$second_filename exists" or do {
my @files = glob '*';
diag( "Files in current working dir are <@files>" );
};
};

=pod
Expand All @@ -64,7 +67,10 @@ 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";
ok -e catfile( $subdir, $filename ), "$subdir/$second_filename exists" or do {
my @files = glob '*';
diag( "Files in current working dir are <@files>" );
};
};

done_testing();

0 comments on commit dabdd9a

Please sign in to comment.