From: Basil L. Contovounesios Date: Wed, 20 Apr 2022 10:20:57 +0000 (+0300) Subject: ; Fix repeated lambda argnames in files-tests.el. X-Git-Tag: emacs-29.0.90~1931^2~390 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=11b88036e80a67add717db7a0d6184891349415e;p=emacs.git ; Fix repeated lambda argnames in files-tests.el. --- diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el index c5b0fe0bbbc..34c002be271 100644 --- a/test/lisp/files-tests.el +++ b/test/lisp/files-tests.el @@ -263,7 +263,7 @@ form.") nil)) (kill-emacs-args nil) ((symbol-function #'kill-emacs) - (lambda (&optional arg arg) (push arg kill-emacs-args))) + (lambda (&rest args) (push args kill-emacs-args))) (process (make-process :name "sleep" @@ -274,7 +274,7 @@ form.") (save-buffers-kill-emacs) (kill-process process) (should-not yes-or-no-p-prompts) - (should (equal kill-emacs-args '(nil))))) + (should (equal kill-emacs-args '((nil nil)))))) (ert-deftest files-tests-read-file-in-~ () "Test file prompting in directory named `~'.