aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-31 14:19:18 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-31 14:26:20 +0300
commita4bcb9f98b00885823c8c9b2b5fc53bc52c1edc9 (patch)
tree6ef0d18ee69a99317b7d34e8c01e0d8bfb0ee2d9 /tests/test/script
parent558f89e05a50c59b6369a980c246ec5e6ee834ea (diff)
Fix testscript runner not to remove special files with wildcard cleanups
Diffstat (limited to 'tests/test/script')
-rw-r--r--tests/test/script/runner/cleanup.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test/script/runner/cleanup.test b/tests/test/script/runner/cleanup.test
index fe72807..a26c1af 100644
--- a/tests/test/script/runner/cleanup.test
+++ b/tests/test/script/runner/cleanup.test
@@ -279,6 +279,25 @@ b += --no-column
:
$c <'$* -d a/b &a/ &a/b/' && $b
+: special-order
+:
+: Test that special files are cleaned before others, and there is no attempt
+: to remove them twice (normally and with wildcard cleanup).
+:
+$c <<EOI && $b
+$* -o foo >'foo';
+true &*
+EOI
+
+: wd-wildcard
+:
+: Test that there is no attempt to remove working directory twice (normally and
+: with wildcard cleanup).
+:
+$c <<EOI && $b
+true &***
+EOI
+
: implicit-overwrite
:
: Test an implicit cleanup being overwritten with the explicit one,