aboutsummaryrefslogtreecommitdiff
path: root/tests/test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test')
-rw-r--r--tests/test/script/integration/testscript8
-rw-r--r--tests/test/script/runner/redirect.testscript4
2 files changed, 9 insertions, 3 deletions
diff --git a/tests/test/script/integration/testscript b/tests/test/script/integration/testscript
index 7bdad54..b399197 100644
--- a/tests/test/script/integration/testscript
+++ b/tests/test/script/integration/testscript
@@ -50,7 +50,8 @@ EOE
: wd-exists-before
:
touch foo.testscript;
-mkdir test &!test/;
+mkdir --no-cleanup test;
+touch --no-cleanup test/.buildignore;
$* <<EOI 2>>/EOE
./: testscript{foo}
EOI
@@ -60,8 +61,9 @@ EOE
: wd-not-empty-before
:
touch foo.testscript;
-mkdir test &!test/;
-touch test/dummy &!test/dummy;
+mkdir --no-cleanup test;
+touch --no-cleanup test/.buildignore;
+touch --no-cleanup test/dummy;
$* <<EOI 2>>/EOE
./: testscript{foo}
EOI
diff --git a/tests/test/script/runner/redirect.testscript b/tests/test/script/runner/redirect.testscript
index 21e9d07..7e4e42d 100644
--- a/tests/test/script/runner/redirect.testscript
+++ b/tests/test/script/runner/redirect.testscript
@@ -43,12 +43,14 @@ psr = ($cxx.target.class != 'windows' ? '/' : '\\') # Path separator in regex.
$c <'$* -o foo >!' && $b >foo 2>>/~%EOE%
%test .+%
mkdir test/
+ touch test/.buildignore
cd test/
mkdir test/1/
cd test/1/
%.*/driver(.exe)? -o foo%
rmdir test/1/
cd test/
+ rm test/.buildignore
rmdir test/
cd ./
EOE
@@ -58,6 +60,7 @@ psr = ($cxx.target.class != 'windows' ? '/' : '\\') # Path separator in regex.
$c <'$* -e foo 2>!' && $b 2>>/~%EOE%
%test .+%
mkdir test/
+ touch test/.buildignore
cd test/
mkdir test/1/
cd test/1/
@@ -65,6 +68,7 @@ psr = ($cxx.target.class != 'windows' ? '/' : '\\') # Path separator in regex.
foo
rmdir test/1/
cd test/
+ rm test/.buildignore
rmdir test/
cd ./
EOE