Skip to content

Commit 6df8187

Browse files
committed
Fix new warning in t/op/mkdir.t.
Removing a directory that doesn't exist causes a warning, and if the warning appears before the test preamble, that causes the test to fail. So check whether the directory exists before trying to remove it.
1 parent 495173e commit 6df8187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/op/mkdir.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ plan tests => 22;
1010

1111
unless (eval {
1212
require File::Path;
13-
File::Path::rmtree('blurfl');
13+
File::Path::rmtree('blurfl') if -d 'blurfl';
1414
1
1515
}) {
1616
diag("$0 may fail if its temporary directory remains from a previous run");

0 commit comments

Comments
 (0)