Change 34196 by [EMAIL PROTECTED] on 2008/08/10 20:43:06

        Subject: Avoid a potential testing race condition in 
lib/Dirhandle.ttest.
        From: Bram <[EMAIL PROTECTED]>
        Message-ID: <[EMAIL PROTECTED]>
        Date: Sun, 10 Aug 2008 20:36:27 +0200

Affected files ...

... //depot/perl/lib/DirHandle.t#3 edit

Differences ...

==== //depot/perl/lib/DirHandle.t#3 (xtext) ====
Index: perl/lib/DirHandle.t
--- perl/lib/DirHandle.t#2~19580~       2003-05-21 06:06:13.000000000 -0700
+++ perl/lib/DirHandle.t        2008-08-10 13:43:06.000000000 -0700
@@ -15,6 +15,15 @@
 
 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));
@@ -33,3 +42,7 @@
 $dot->close;
 $dot->rewind;
 ok(!defined($dot->read));
+
+if ($chdir) {
+  chdir "..";
+}
End of Patch.

Reply via email to