aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRobert Pluim2022-01-13 15:54:28 +0100
committerRobert Pluim2022-01-14 10:06:21 +0100
commit53eaec6dc33ad3b44ce4566330c834a47f1e56dd (patch)
treeaf22bfa923ca45770da49a96a3f55ced3184cf32 /test
parent8df6f002237a1f5624a34c1880aed809918aebe4 (diff)
downloademacs-53eaec6dc33ad3b44ce4566330c834a47f1e56dd.tar.gz
emacs-53eaec6dc33ad3b44ce4566330c834a47f1e56dd.zip
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'.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/so-long-tests/spelling-tests.el6
1 files 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 3484957e962..ce4b0844c99 100644
--- a/test/lisp/so-long-tests/spelling-tests.el
+++ b/test/lisp/so-long-tests/spelling-tests.el
@@ -50,9 +50,9 @@
50 ;; The Emacs test Makefile's use of HOME=/nonexistent triggers an error 50 ;; The Emacs test Makefile's use of HOME=/nonexistent triggers an error
51 ;; when starting the inferior ispell process, so we set HOME to a valid 51 ;; when starting the inferior ispell process, so we set HOME to a valid
52 ;; (but empty) temporary directory for this test. 52 ;; (but empty) temporary directory for this test.
53 (ert-with-temp-file tmpdir 53 (ert-with-temp-directory tmpdir
54 :directory t 54 :prefix "so-long."
55 :suffix "so-long.ispell" 55 :suffix ".ispell"
56 (let* ((process-environment (cons (format "HOME=%s" tmpdir) 56 (let* ((process-environment (cons (format "HOME=%s" tmpdir)
57 process-environment)) 57 process-environment))
58 (find-spelling-mistake 58 (find-spelling-mistake