From: Mattias EngdegÄrd Date: Sat, 4 Nov 2023 09:19:52 +0000 (+0100) Subject: Fix bytecomp-tests--dest-mountpoint test failure X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5ab5dfd64c85cee8c8d37e988519045e11f46a98;p=emacs.git Fix bytecomp-tests--dest-mountpoint test failure * 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) --- diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el index 4aa555f1e92..06918f5901c 100644 --- a/test/lisp/emacs-lisp/bytecomp-tests.el +++ b/test/lisp/emacs-lisp/bytecomp-tests.el @@ -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