diff options
author | David Mitchell <davem@iabyn.com> | 2014-04-06 20:07:05 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2014-04-06 20:07:05 +0100 |
commit | dc9327d7b15505dbee4c9b53023efcfb88db6a8a (patch) | |
tree | 5276feeada4b21fd9f5073e1a6f2e63e72f31697 /pod/perlpacktut.pod | |
parent | c67edbcd1a902e5bf297baff434c10fbfb3211db (diff) | |
download | perl-dc9327d7b15505dbee4c9b53023efcfb88db6a8a.tar.gz |
File-Glob/t/basic.t: avoid race condition
Test 2 does a glob('*') in the t/ directory, and compares that with the
results of readdir('.'). If we're doing parallel testing, temporary files
and stuff may get created in t/, resulting in a race condition and
occasional random failures.
Fix this by chdir()ing to t/base/ first. The timestamp on this directory
on my system seems to indicate that nothing currently creates tmp files in
that dir, and given that these are basic tests, that's relatively unlikely
to change.
Diffstat (limited to 'pod/perlpacktut.pod')
0 files changed, 0 insertions, 0 deletions