This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
File-Find/t - rework tempdir creation and cleanup blead
authorYves Orton <demerphq@gmail.com>
Mon, 30 Jan 2023 01:55:45 +0000 (02:55 +0100)
committerYves Orton <demerphq@gmail.com>
Tue, 31 Jan 2023 00:42:26 +0000 (08:42 +0800)
commitd404f73baa29d5697ed2cac768de015217d5e819
treec42122bb1b24ea8432103c6b5df565db5e3fb1df
parente9f20e0860ca7ba8a9430281f0c0e3dc4ba912cf
File-Find/t - rework tempdir creation and cleanup

Fixes #20734 - in a previous patch I missed the early cleanup call
and the fact that it could result in a race condition. This hopefully
resolves the problem.

These tests files are pretty crufty. It would be nice to see them split
apart so that the "sanity" checks which expect to be run in t/ are
executed in a separate test files from the checks which build a tree to
traverse for testing. A perfect task for a new contributor.
ext/File-Find/t/find.t
ext/File-Find/t/taint.t