mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 03:39:38 +00:00
Cleanup in files-tests.el
* test/lisp/files-tests.el (files-tests--make-directory) (files-tests--copy-directory): Cleanup temporary directories.
This commit is contained in:
parent
6359fe630a
commit
466df76f7d
1 changed files with 4 additions and 2 deletions
|
@ -363,7 +363,8 @@ be invoked with the right arguments."
|
||||||
(should-not (make-directory subdir1))
|
(should-not (make-directory subdir1))
|
||||||
(should-not (make-directory subdir2 t))
|
(should-not (make-directory subdir2 t))
|
||||||
(should-error (make-directory a/b))
|
(should-error (make-directory a/b))
|
||||||
(should-not (make-directory a/b t))))
|
(should-not (make-directory a/b t))
|
||||||
|
(delete-directory dir 'recursive)))
|
||||||
|
|
||||||
(ert-deftest files-test-no-file-write-contents ()
|
(ert-deftest files-test-no-file-write-contents ()
|
||||||
"Test that `write-contents-functions' permits saving a file.
|
"Test that `write-contents-functions' permits saving a file.
|
||||||
|
@ -402,7 +403,8 @@ name (Bug#28412)."
|
||||||
(make-directory source)
|
(make-directory source)
|
||||||
(write-region "" nil file)
|
(write-region "" nil file)
|
||||||
(copy-directory source dest t t t)
|
(copy-directory source dest t t t)
|
||||||
(should (file-exists-p (concat dest "file")))))
|
(should (file-exists-p (concat dest "file")))
|
||||||
|
(delete-directory dir 'recursive)))
|
||||||
|
|
||||||
(provide 'files-tests)
|
(provide 'files-tests)
|
||||||
;;; files-tests.el ends here
|
;;; files-tests.el ends here
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue