From: Stefan Kangas Date: Wed, 14 Dec 2022 07:21:34 +0000 (+0100) Subject: Delete temp files after icalendar tests X-Git-Tag: emacs-29.0.90~1191 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3efe4df1d20b1b2d823613f0945a2d37b76004a9;p=emacs.git 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. --- diff --git a/test/lisp/calendar/icalendar-tests.el b/test/lisp/calendar/icalendar-tests.el index fa55eea95e2..baf4846c8f5 100644 --- a/test/lisp/calendar/icalendar-tests.el +++ b/test/lisp/calendar/icalendar-tests.el @@ -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))