]> git.eshelyaron.com Git - emacs.git/commitdiff
spelling-tests.el: actually create a temp directory
authorRobert Pluim <rpluim@gmail.com>
Thu, 13 Jan 2022 09:33:13 +0000 (10:33 +0100)
committerRobert Pluim <rpluim@gmail.com>
Thu, 13 Jan 2022 10:11:35 +0000 (11:11 +0100)
This test was creating a file, but actually needs a directory, and
fails otherwise.

* test/lisp/so-long-tests/spelling-tests.el (so-long-spelling):
Pass the :directory arg to ert-with-temp-file so we actually
create a directory.

test/lisp/so-long-tests/spelling-tests.el

index 317513e9a9168d1c1c54cfb89310fa5365fae377..09ffa3c8006adc993830951af2bd024b535e32ac 100644 (file)
@@ -52,6 +52,7 @@
     ;; 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"
       (let* ((process-environment (cons (format "HOME=%s" tmpdir)
                                         process-environment))