From 773778e1c0cac41bf4b6a254db43d6ded21c331b Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Wed, 27 Jul 2016 12:28:14 -0400 Subject: [PATCH] Fix dired-test-bug22694 * test/lisp/dired-tests.el (dired-test-bug22694): Delete the "bug22694" directory, if it exists, before running the test. It might be left over from a previous aborted run of the test. --- test/lisp/dired-tests.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el index d66a9caedd3..6dd4bb91bc2 100644 --- a/test/lisp/dired-tests.el +++ b/test/lisp/dired-tests.el @@ -38,6 +38,8 @@ (full-name (expand-file-name file dir)) (regexp "bar") (dired-always-read-filesystem t)) + (if (file-exists-p dir) + (delete-directory dir 'recursive)) (make-directory dir) (with-temp-file full-name (insert "foo")) (find-file-noselect full-name) -- 2.39.2