]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bytecomp-tests--dest-mountpoint test failure
authorMattias Engdegård <mattiase@acm.org>
Sat, 4 Nov 2023 09:19:52 +0000 (10:19 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sat, 4 Nov 2023 09:30:41 +0000 (10:30 +0100)
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-tests--dest-mountpoint): Add lexical cookie.

Bug reported and fix suggested by Jens Schmidt
(https://lists.gnu.org/archive/html/emacs-devel/2023-10/msg00719.html)

test/lisp/emacs-lisp/bytecomp-tests.el

index 4aa555f1e92fe8eadd8ce8ea7c2ce95a1d3b0002..06918f5901ca0b5f24f70cbdfb9780c453f413c0 100644 (file)
@@ -1697,7 +1697,8 @@ mountpoint (Bug#44631)."
              (byte-compile-error-on-warn t))
         (should-not (file-remote-p input-file))
         (should-not (file-remote-p output-file))
-        (write-region "" nil input-file nil nil nil 'excl)
+        (write-region ";;; -*-lexical-binding:t-*-\n"
+                      nil input-file nil nil nil 'excl)
         (write-region "" nil output-file nil nil nil 'excl)
         (unwind-protect
             (progn