diff --git a/test/archives.el b/test/archives.el index 3a66751..171820e 100644 --- a/test/archives.el +++ b/test/archives.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/autoloads.el b/test/autoloads.el index cb88114..299581c 100644 --- a/test/autoloads.el +++ b/test/autoloads.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/backtrace.el b/test/backtrace.el index f8b72f9..1e8831a 100644 --- a/test/backtrace.el +++ b/test/backtrace.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/basics.el b/test/basics.el index 9b61628..cc1fbf8 100644 --- a/test/basics.el +++ b/test/basics.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/clean.el b/test/clean.el index 7661b7c..f2930a1 100644 --- a/test/clean.el +++ b/test/clean.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/common.el b/test/common.el index 2981a96..2ab3220 100644 --- a/test/common.el +++ b/test/common.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'eldev) (require 'eldev-vc) (require 'ert) @@ -366,10 +368,10 @@ beginning. Exit code of the process is bound as EXIT-CODE." (defun eldev--test-line-list (multiline-string) (split-string multiline-string "\n" t)) -(defmacro eldev--test-canonicalize-bin/eldev-path (_result) - (let ((result (make-symbol "result"))) +(defmacro eldev--test-canonicalize-bin/eldev-path (path) + (let ((result (make-symbol "$result"))) (if (eq system-type 'windows-nt) - `(let ((,result ,_result)) + `(let ((,result ,path)) (if (string-match "^\\(.*/bin/eldev\\)" ,result) (let* ((matched (match-string 1 ,result)) (replacement @@ -379,7 +381,7 @@ beginning. Exit code of the process is bound as EXIT-CODE." nil 'literal))) (replace-match replacement nil 'literal ,result 1)) ,result)) - _result))) + path))) (defmacro eldev--test-in-project-environment (&rest body) `(let ((eldev-project-dir (eldev--test-project-dir)) @@ -395,6 +397,7 @@ beginning. Exit code of the process is bound as EXIT-CODE." (eldev--test-delete-quietly nil ',files-to-delete) (let* ((project-dir (eldev--test-project-dir)) (preexisting-files (eldev--test-find-files project-dir))) + (ignore preexisting-files) (unwind-protect (progn ,@body) (eldev--test-delete-quietly nil ',files-to-delete))))) diff --git a/test/compile.el b/test/compile.el index b64d9d8..14ce86c 100644 --- a/test/compile.el +++ b/test/compile.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/dependencies.el b/test/dependencies.el index 282f433..2362ed5 100644 --- a/test/dependencies.el +++ b/test/dependencies.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/dependency-tree.el b/test/dependency-tree.el index 8bf8a8e..dab08f9 100644 --- a/test/dependency-tree.el +++ b/test/dependency-tree.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/doctor.el b/test/doctor.el index 7321b57..eb9adcd 100644 --- a/test/doctor.el +++ b/test/doctor.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/emacs.el b/test/emacs.el index 7c417b4..adefd47 100644 --- a/test/emacs.el +++ b/test/emacs.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/eval.el b/test/eval.el index a3e9ea0..f62a76c 100644 --- a/test/eval.el +++ b/test/eval.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/exec.el b/test/exec.el index 0dcd832..d99c2d2 100644 --- a/test/exec.el +++ b/test/exec.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/extending.el b/test/extending.el index c2fb9de..a632a37 100644 --- a/test/extending.el +++ b/test/extending.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/files.el b/test/files.el index ad8a3ac..0688bb3 100644 --- a/test/files.el +++ b/test/files.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/fileset.el b/test/fileset.el index 73f8487..c413d4c 100644 --- a/test/fileset.el +++ b/test/fileset.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/functions.el b/test/functions.el index 65fe36a..39376a5 100644 --- a/test/functions.el +++ b/test/functions.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) ;; Testing various functions, macros etc. without particular relation to any command. diff --git a/test/help.el b/test/help.el index 9cfb35c..0942503 100644 --- a/test/help.el +++ b/test/help.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/info.el b/test/info.el index 5d86f96..32cefce 100644 --- a/test/info.el +++ b/test/info.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/init.el b/test/init.el index 111260f..37b502b 100644 --- a/test/init.el +++ b/test/init.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/install-self.el b/test/install-self.el index 4663458..18985eb 100644 --- a/test/install-self.el +++ b/test/install-self.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/integration/buttercup.el b/test/integration/buttercup.el index 91e3a28..280613f 100644 --- a/test/integration/buttercup.el +++ b/test/integration/buttercup.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/integration/checkdoc.el b/test/integration/checkdoc.el index 0548b2d..76800bb 100644 --- a/test/integration/checkdoc.el +++ b/test/integration/checkdoc.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/integration/docker.el b/test/integration/docker.el index 78828f7..7f702bf 100644 --- a/test/integration/docker.el +++ b/test/integration/docker.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/integration/doctor.el b/test/integration/doctor.el index a632e93..7ab731a 100644 --- a/test/integration/doctor.el +++ b/test/integration/doctor.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/integration/ecukes.el b/test/integration/ecukes.el index c74f0ee..d2e9347 100644 --- a/test/integration/ecukes.el +++ b/test/integration/ecukes.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/integration/elisp-lint.el b/test/integration/elisp-lint.el index 00f0e93..1db6edb 100644 --- a/test/integration/elisp-lint.el +++ b/test/integration/elisp-lint.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/integration/global-cache.el b/test/integration/global-cache.el index 84172eb..eceef4d 100644 --- a/test/integration/global-cache.el +++ b/test/integration/global-cache.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/integration/misc.el b/test/integration/misc.el index 27dde3b..cc85170 100644 --- a/test/integration/misc.el +++ b/test/integration/misc.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/integration/package-lint.el b/test/integration/package-lint.el index ec33b9f..8304f6e 100644 --- a/test/integration/package-lint.el +++ b/test/integration/package-lint.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/integration/relint.el b/test/integration/relint.el index e217acf..2b3b8f3 100644 --- a/test/integration/relint.el +++ b/test/integration/relint.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/integration/undercover.el b/test/integration/undercover.el index 694e1f7..fe1afd7 100644 --- a/test/integration/undercover.el +++ b/test/integration/undercover.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/internals.el b/test/internals.el index d7faf49..8f48eac 100644 --- a/test/internals.el +++ b/test/internals.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/lint.el b/test/lint.el index 333e383..8cfae15 100644 --- a/test/lint.el +++ b/test/lint.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/loading-modes.el b/test/loading-modes.el index 38c5102..2719677 100644 --- a/test/loading-modes.el +++ b/test/loading-modes.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/local-dependencies.el b/test/local-dependencies.el index 7bde03d..6c2f119 100644 --- a/test/local-dependencies.el +++ b/test/local-dependencies.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/maintainer.el b/test/maintainer.el index 3c21ce0..effec7e 100644 --- a/test/maintainer.el +++ b/test/maintainer.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) (require 'eldev-plugins) diff --git a/test/misc.el b/test/misc.el index 6da17a0..d5fcffb 100644 --- a/test/misc.el +++ b/test/misc.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/optional-dependencies.el b/test/optional-dependencies.el index 6b16e17..d674874 100644 --- a/test/optional-dependencies.el +++ b/test/optional-dependencies.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/package.el b/test/package.el index d84ecf7..afb88f1 100644 --- a/test/package.el +++ b/test/package.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/plugins.el b/test/plugins.el index 3f0feea..48918ba 100644 --- a/test/plugins.el +++ b/test/plugins.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/prepare.el b/test/prepare.el index 7ba7eb4..ca1c545 100644 --- a/test/prepare.el +++ b/test/prepare.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/profile.el b/test/profile.el index 5b615c4..2e5e014 100644 --- a/test/profile.el +++ b/test/profile.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/robust-mode.el b/test/robust-mode.el index 287226b..7780bc5 100644 --- a/test/robust-mode.el +++ b/test/robust-mode.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/runtime-dependencies.el b/test/runtime-dependencies.el index b20ff10..c44763b 100644 --- a/test/runtime-dependencies.el +++ b/test/runtime-dependencies.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/stable-unstable.el b/test/stable-unstable.el index f69d05b..cdd7a72 100644 --- a/test/stable-unstable.el +++ b/test/stable-unstable.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/targets.el b/test/targets.el index 3760c79..c2b6ee1 100644 --- a/test/targets.el +++ b/test/targets.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) @@ -252,8 +254,7 @@ (should (= exit-code 0))))))) (defun eldev--test-targets-combine (&rest lists) - (let ((targets (copy-sequence (pop lists))) - section) + (let ((targets (copy-sequence (pop lists)))) (dolist (list lists) (while list (let* ((section (pop list)) diff --git a/test/test.el b/test/test.el index af89d04..7d586f4 100644 --- a/test/test.el +++ b/test/test.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/upgrade-self.el b/test/upgrade-self.el index 94d8ea0..f04c053 100644 --- a/test/upgrade-self.el +++ b/test/upgrade-self.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/upgrade.el b/test/upgrade.el index 64f1f3b..730e7f0 100644 --- a/test/upgrade.el +++ b/test/upgrade.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/version-requirement.el b/test/version-requirement.el index c66bc29..fd68710 100644 --- a/test/version-requirement.el +++ b/test/version-requirement.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common) diff --git a/test/version.el b/test/version.el index 9636401..f518784 100644 --- a/test/version.el +++ b/test/version.el @@ -1,3 +1,5 @@ +;; -*- lexical-binding: t -*- + (require 'test/common)