emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 3efe4df1d2: Delete temp files after icalendar tests


From: Stefan Kangas
Subject: emacs-29 3efe4df1d2: Delete temp files after icalendar tests
Date: Wed, 14 Dec 2022 02:26:33 -0500 (EST)

branch: emacs-29
commit 3efe4df1d20b1b2d823613f0945a2d37b76004a9
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    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.
---
 test/lisp/calendar/icalendar-tests.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/lisp/calendar/icalendar-tests.el 
b/test/lisp/calendar/icalendar-tests.el
index fa55eea95e..baf4846c8f 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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]