summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKen Brown <kbrown@cornell.edu>2016-07-27 12:28:14 -0400
committerKen Brown <kbrown@cornell.edu>2016-07-27 12:30:43 -0400
commit773778e1c0cac41bf4b6a254db43d6ded21c331b (patch)
treef584d4c7b69e33c838b0f2f12144173eb85c1a36 /test
parent74f9c1a8cdfaac948cf14a212cb5a51c49ddefa8 (diff)
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.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/dired-tests.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el
index d66a9caedd..6dd4bb91bc 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)