From f68ca8049181fb9e244b8d6b94514027085c92c2 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sat, 3 Sep 2016 18:38:27 +0200 Subject: [PATCH] unlink the file from the subjob - 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 --- tools/tesh/background.tesh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/tesh/background.tesh b/tools/tesh/background.tesh index 3fbabd3475..74332e7baa 100644 --- a/tools/tesh/background.tesh +++ b/tools/tesh/background.tesh @@ -4,12 +4,14 @@ $ mkdir temp_testdir_background $ cd temp_testdir_background < use strict; -< sleep(2); +< sleep(1); < open (FILE, ") { < print; < } +< close(FILE); +< unlink("tmp_fich"); < exit 0; < $ mkfile delayed_cat.pl @@ -22,4 +24,3 @@ $ mkfile tmp_fich $ sleep 2 $ cd .. -$ cmake -E remove_directory temp_testdir_background -- 2.20.1