From: Ken Brown Date: Wed, 27 Jul 2016 16:28:14 +0000 (-0400) Subject: Fix dired-test-bug22694 X-Git-Tag: emacs-26.0.90~1840^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=773778e1c0cac41bf4b6a254db43d6ded21c331b;p=emacs.git 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. --- 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)