aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2017-09-18 10:00:17 +0200
committerMichael Albinus2017-09-18 10:00:17 +0200
commit466df76f7df06a03760545fe03d71bc0dc7fe98f (patch)
tree34878c78e6e832ab0c31090df01c94073ef79480
parent6359fe630ad06052ee0543b30466a74cd32b69c9 (diff)
downloademacs-466df76f7df06a03760545fe03d71bc0dc7fe98f.tar.gz
emacs-466df76f7df06a03760545fe03d71bc0dc7fe98f.zip
Cleanup in files-tests.el
* test/lisp/files-tests.el (files-tests--make-directory) (files-tests--copy-directory): Cleanup temporary directories.
-rw-r--r--test/lisp/files-tests.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el
index 3117ea697ec..f2a9a321808 100644
--- a/test/lisp/files-tests.el
+++ b/test/lisp/files-tests.el
@@ -363,7 +363,8 @@ be invoked with the right arguments."
363 (should-not (make-directory subdir1)) 363 (should-not (make-directory subdir1))
364 (should-not (make-directory subdir2 t)) 364 (should-not (make-directory subdir2 t))
365 (should-error (make-directory a/b)) 365 (should-error (make-directory a/b))
366 (should-not (make-directory a/b t)))) 366 (should-not (make-directory a/b t))
367 (delete-directory dir 'recursive)))
367 368
368(ert-deftest files-test-no-file-write-contents () 369(ert-deftest files-test-no-file-write-contents ()
369 "Test that `write-contents-functions' permits saving a file. 370 "Test that `write-contents-functions' permits saving a file.
@@ -402,7 +403,8 @@ name (Bug#28412)."
402 (make-directory source) 403 (make-directory source)
403 (write-region "" nil file) 404 (write-region "" nil file)
404 (copy-directory source dest t t t) 405 (copy-directory source dest t t t)
405 (should (file-exists-p (concat dest "file"))))) 406 (should (file-exists-p (concat dest "file")))
407 (delete-directory dir 'recursive)))
406 408
407(provide 'files-tests) 409(provide 'files-tests)
408;;; files-tests.el ends here 410;;; files-tests.el ends here