summaryrefslogtreecommitdiff
path: root/caretx.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2014-04-06 20:07:05 +0100
committerDavid Mitchell <davem@iabyn.com>2014-04-06 20:07:05 +0100
commitdc9327d7b15505dbee4c9b53023efcfb88db6a8a (patch)
tree5276feeada4b21fd9f5073e1a6f2e63e72f31697 /caretx.c
parentc67edbcd1a902e5bf297baff434c10fbfb3211db (diff)
downloadperl-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 'caretx.c')
0 files changed, 0 insertions, 0 deletions