aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script/runner/cleanup.test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-11-01 23:31:27 +0300
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:37 +0200
commitb741291c708e5c2088680a0d9d3c75efd98db421 (patch)
tree5a21d56b272ddf0895cd0c221aaa9630927e9d21 /tests/test/script/runner/cleanup.test
parent675d243e0ddeb627c0881b03e7cd5be746a5a7d3 (diff)
Make rmdir_r() to call entry_exists(path) rather than exists(dir_path)
Diffstat (limited to 'tests/test/script/runner/cleanup.test')
-rw-r--r--tests/test/script/runner/cleanup.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test/script/runner/cleanup.test b/tests/test/script/runner/cleanup.test
index 599bb5c..bb65c27 100644
--- a/tests/test/script/runner/cleanup.test
+++ b/tests/test/script/runner/cleanup.test
@@ -133,6 +133,14 @@ $b 2>>EOE != 0
testscript:1: error: registered for cleanup wildcard test/a/*** is out of working directory test/1/
EOE
+: wildcard-not-dir
+: Test cleanup of file as a wildcard
+:
+$c <"$* -f a &a/***";
+$b 2>>EOE != 0
+error: unable to remove directory test/1/a/: Not a directory
+EOE
+
: implicit-overwrite
: Test implicit cleanup being overwritten with an explicit one
: