From ca656c31ec4af73842e3794d1345dfa98d056b5c Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 4 Sep 2016 10:59:45 +0200 Subject: [PATCH] don't leak test files on disk --- tools/tesh/background.tesh | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/tools/tesh/background.tesh b/tools/tesh/background.tesh index 74332e7baa..6eb8602370 100644 --- a/tools/tesh/background.tesh +++ b/tools/tesh/background.tesh @@ -1,26 +1,23 @@ -$ cmake -E remove_directory temp_testdir_background -$ mkdir temp_testdir_background -$ cd temp_testdir_background +$ cmake -E remove bgtesh.pl bgtesh.data < use strict; < sleep(1); -< open (FILE, ") { < print; < } < close(FILE); -< unlink("tmp_fich"); < exit 0; < -$ mkfile delayed_cat.pl +$ mkfile bgtesh.pl -& perl delayed_cat.pl +& perl bgtesh.pl > TOTO < TOTO -$ mkfile tmp_fich +$ mkfile bgtesh.data $ sleep 2 -$ cd .. +$ cmake -E remove bgtesh.pl bgtesh.data -- 2.20.1