From: Nicholas Clark Date: Wed, 6 Aug 2008 21:36:45 +0000 (+0000) Subject: Avoid a potential testing race condition in Shell.pm's test. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=75ff0aabd99f2dc0b759e6d27a79bfedc15168a7;p=p5sagit%2Fp5-mst-13.2.git Avoid a potential testing race condition in Shell.pm's test. p4raw-id: //depot/perl@34175 --- diff --git a/lib/Shell.t b/lib/Shell.t index c76628c..23c1e0e 100644 --- a/lib/Shell.t +++ b/lib/Shell.t @@ -41,6 +41,11 @@ ok(($^O eq 'os2' xor !(-s $tmpfile)), '$Shell::capture_stderr'); $Shell::capture_stderr = 0; +# Trying to do two repeated Cs in t in core and expecting the same output +# is a race condition when tests are running in parallel, and using it as a +# temporary directory. So go somewhere quieter. +chdir 'uni' if $ENV{PERL_CORE} && -d 'uni'; + # someone will have to fill in the blanks for other platforms if ($Is_VMS) {