File::Path::rmtree() is only used as a cleanup function of last resort - by
default t/op/mkdir.t directly cleans up the test directory that it creates
before it exits.
plan tests => 22;
-use File::Path;
-rmtree('blurfl');
+unless (eval {
+ require File::Path;
+ File::Path::rmtree('blurfl');
+ 1
+}) {
+ diag("$0 may fail if its temporary directory remains from a previous run");
+ diag("Attempted to load File::Path to delete directory t/blurfl - error was\n$@");
+ diag("\nIf you have problems, please manually delete t/blurfl");
+}
# tests 3 and 7 rather naughtily expect English error messages
$ENV{'LC_ALL'} = 'C';