Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Intermittent bug in module: File not getting deleted as expectedby haukex (Archbishop) |
on Feb 19, 2019 at 18:11 UTC ( [id://1230175]=note: print w/replies, xml ) | Need Help?? |
In addition to what stevieb said about the -M test, which does seem a likely candidate (remember it depends on the behavior of the filesystem), I also see you aren't checking unlink for success or failure. For the former issue, you might want to add some kind of "force" parameter to cleanup to skip the -M test overall and just delete all files, that way the test will be more deterministic.
In Section
Seekers of Perl Wisdom
|
|