plan(5);
+# Fetching the list of files in two different ways and expecting them
+# to be the same is a race condition when tests are running in parallel.
+# So go somewhere quieter.
+my $chdir;
+if ($ENV{PERL_CORE} && -d 'uni') {
+ chdir 'uni';
+ $chdir++;
+};
+
$dot = new DirHandle ($^O eq 'MacOS' ? ':' : '.');
ok(defined($dot));
$dot->close;
$dot->rewind;
ok(!defined($dot->read));
+
+if ($chdir) {
+ chdir "..";
+}