- This test often fails because the main job does find the file to cleanup
- I suspect synchronization issue, so try to remove it from perl to ease things
- Also have perl close the file before removing it, some OS don't like
multiple access to the same file
$ cd temp_testdir_background
< use strict;
-< sleep(2);
+< sleep(1);
< open (FILE, "<tmp_fich") || die "Cannot open tmp_fich: $!\n";
<
< while (<FILE>) {
< print;
< }
+< close(FILE);
+< unlink("tmp_fich");
< exit 0;
<
$ mkfile delayed_cat.pl
$ sleep 2
$ cd ..
-$ cmake -E remove_directory temp_testdir_background