Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[windows] use 'cmake -E remove_directory' instead of 'rm -rf'
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 30 Sep 2015 20:06:28 +0000 (22:06 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 30 Sep 2015 20:06:33 +0000 (22:06 +0200)
It fails with the following error message on appveyor:

 "C:/Program Files (x86)/Git/bin/rm.EXE": cannot unlink `temp_testdir_background/tmp_fich': Permission denied

tools/tesh/background.tesh
tools/tesh/bg-set-signal.tesh
tools/tesh/catch-signal.tesh
tools/tesh/cd.tesh
tools/tesh/setenv.tesh

index 8b177fe..3fbabd3 100644 (file)
@@ -1,5 +1,5 @@
 
-$ rm -rf temp_testdir_background
+$ cmake -E remove_directory temp_testdir_background
 $ mkdir temp_testdir_background
 $ cd temp_testdir_background
 
@@ -22,4 +22,4 @@ $ mkfile tmp_fich
 
 $ sleep 2
 $ cd ..
-$ rm -rf temp_testdir_background
+$ cmake -E remove_directory temp_testdir_background
index bd2f722..2179eaa 100644 (file)
@@ -2,7 +2,7 @@
 # This suite builds and uses a program raising a segfault, ie a program dying
 # of SIGSEV. tesh must detect this condition and report the issue.
 
-$ rm -rf temp_testdir-bg-set-signal
+$ cmake -E remove_directory temp_testdir-bg-set-signal
 $ mkdir temp_testdir-bg-set-signal
 
 $ cd temp_testdir-bg-set-signal
@@ -13,4 +13,4 @@ $ mkfile segfault.pl
 & perl segfault.pl
 
 $ cd ..
-$ rm -rf temp_testdir-bg-set-signal
+$ cmake -E remove_directory temp_testdir-bg-set-signal
index 1d47102..be19f34 100644 (file)
@@ -2,7 +2,7 @@
 # This suite builds and uses a program raising a segfault, ie a program dying
 # of SIGSEV. tesh must detect this condition and report the issue.
 
-$ rm -rf temp_testdir-catch-signal
+$ cmake -E remove_directory temp_testdir-catch-signal
 $ mkdir temp_testdir-catch-signal
 
 $ cd temp_testdir-catch-signal
@@ -23,4 +23,4 @@ $ perl ${bindir:=.}/tesh
 > <(stdin):1> No output so far.
 
 $ cd ..
-$ rm -rf temp_testdir-catch-signal
+$ cmake -E remove_directory temp_testdir-catch-signal
index a12be7c..db9137e 100644 (file)
@@ -2,7 +2,7 @@
 
 # This example uses the cd command
 
-$ rm -rf testdir_temp-cd
+$ cmake -E remove_directory testdir_temp-cd
 $ mkdir testdir_temp-cd
 $ cd testdir_temp-cd
 
@@ -22,4 +22,4 @@ $ perl ${bindir:=.}/tesh
 $ test -e ../testdir_temp-cd
 
 $ cd ..
-$ rmdir testdir_temp-cd
+$ cmake -E remove_directory testdir_temp-cd
index d932217..dfb415e 100644 (file)
@@ -2,7 +2,7 @@
 # This suite builds and uses a program returning 1.
 # tesh is instructed of this return code and must not whine.
 
-$ rm -rf temp_testdir_setenv
+$ cmake -E remove_directory temp_testdir_setenv
 $ mkdir temp_testdir_setenv
 $ cd temp_testdir_setenv
 
@@ -14,4 +14,4 @@ $ perl testenv.pl
 > tesh_test_toto=blah
 
 $ cd ..
-$ rm -rf temp_testdir_setenv
+$ cmake -E remove_directory temp_testdir_setenv