]> git.eshelyaron.com Git - emacs.git/commitdiff
End default-directory with slash in eglot-tests
authorBasil L. Contovounesios <contovob@tcd.ie>
Mon, 10 Apr 2023 09:42:09 +0000 (10:42 +0100)
committerBasil L. Contovounesios <contovob@tcd.ie>
Mon, 10 Apr 2023 10:03:33 +0000 (11:03 +0100)
* test/lisp/progmodes/eglot-tests.el (eglot--call-with-fixture):
Separate prefix from random part of temporary file name.  Ensure
default-directory ends with a directory separator (bug#61637).

test/lisp/progmodes/eglot-tests.el

index 0486c9385581980d040071db329a6c8e7d590df7..ad0a411189f9a26a467a15aeb1bd6755f3a0785b 100644 (file)
@@ -85,8 +85,8 @@ directory hierarchy."
 
 (defun eglot--call-with-fixture (fixture fn)
   "Helper for `eglot--with-fixture'.  Run FN under FIXTURE."
-  (let* ((fixture-directory (make-nearby-temp-file "eglot--fixture" t))
-         (default-directory fixture-directory)
+  (let* ((fixture-directory (make-nearby-temp-file "eglot--fixture-" t))
+         (default-directory (file-name-as-directory fixture-directory))
          created-files
          new-servers
          test-body-successful-p)