X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FShell.t;h=13bba2255e9cd04b6fcfadbc533e369704bbbb71;hb=55ec0dff636c2a8ee5225314d7d46f928ab7f6da;hp=c76628c4ce03905a605109332b6afad5dc4a5e25;hpb=ad9da12857c524c37b6f927f1eb820e0d8a3f638;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/Shell.t b/lib/Shell.t index c76628c..13bba22 100644 --- a/lib/Shell.t +++ b/lib/Shell.t @@ -41,6 +41,14 @@ 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. +if ($ENV{PERL_CORE} && -d 'uni') { + chdir 'uni'; + $chdir++; +} + # someone will have to fill in the blanks for other platforms if ($Is_VMS) { @@ -70,3 +78,7 @@ if ($Is_VMS) { } open(STDERR, ">&SAVERR") ; + +if ($chdir) { + chdir ".."; +}