p4raw-id: //depot/perl@34175
$Shell::capture_stderr = 0;
+# Trying to do two repeated C<ls>s 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) {