[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 53eaec6dc3 2/2: spelling-tests.el: use ert-with-temp-directory
From: |
Robert Pluim |
Subject: |
master 53eaec6dc3 2/2: spelling-tests.el: use ert-with-temp-directory |
Date: |
Fri, 14 Jan 2022 04:06:34 -0500 (EST) |
branch: master
commit 53eaec6dc33ad3b44ce4566330c834a47f1e56dd
Author: Robert Pluim <rpluim@gmail.com>
Commit: Robert Pluim <rpluim@gmail.com>
spelling-tests.el: use ert-with-temp-directory
* test/lisp/so-long-tests/spelling-tests.el (so-long-spelling): Use
;ert-with-temp-directory' instead of passing :directory to
'ert-with-temp-file', and restore the prefix/suffix values used
originally with 'make-temp-file'.
---
test/lisp/so-long-tests/spelling-tests.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/lisp/so-long-tests/spelling-tests.el
b/test/lisp/so-long-tests/spelling-tests.el
index 3484957e96..ce4b0844c9 100644
--- a/test/lisp/so-long-tests/spelling-tests.el
+++ b/test/lisp/so-long-tests/spelling-tests.el
@@ -50,9 +50,9 @@
;; The Emacs test Makefile's use of HOME=/nonexistent triggers an error
;; when starting the inferior ispell process, so we set HOME to a valid
;; (but empty) temporary directory for this test.
- (ert-with-temp-file tmpdir
- :directory t
- :suffix "so-long.ispell"
+ (ert-with-temp-directory tmpdir
+ :prefix "so-long."
+ :suffix ".ispell"
(let* ((process-environment (cons (format "HOME=%s" tmpdir)
process-environment))
(find-spelling-mistake