mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 03:39:38 +00:00
Delete temp files after icalendar tests
* test/lisp/calendar/icalendar-tests.el (icalendar-tests--get-error-string-for-export): Make sure we clean up temporary files after test.
This commit is contained in:
parent
33e0a10464
commit
3efe4df1d2
1 changed files with 2 additions and 1 deletions
|
@ -63,7 +63,8 @@
|
|||
|
||||
(defun icalendar-tests--get-error-string-for-export (diary-string)
|
||||
"Call icalendar-export for DIARY-STRING and return resulting error-string."
|
||||
(let ((file (make-temp-file "export.ics")))
|
||||
(ert-with-temp-file file
|
||||
:suffix "-export.ics"
|
||||
(with-temp-buffer
|
||||
(insert diary-string)
|
||||
(icalendar-export-region (point-min) (point-max) file))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue