From b741291c708e5c2088680a0d9d3c75efd98db421 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 1 Nov 2016 23:31:27 +0300 Subject: Make rmdir_r() to call entry_exists(path) rather than exists(dir_path) --- tests/test/script/runner/cleanup.test | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') 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 : -- cgit v1.1