]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix repeated lambda argnames in files-tests.el.
authorBasil L. Contovounesios <contovob@tcd.ie>
Wed, 20 Apr 2022 10:20:57 +0000 (13:20 +0300)
committerBasil L. Contovounesios <contovob@tcd.ie>
Wed, 20 Apr 2022 10:20:57 +0000 (13:20 +0300)
test/lisp/files-tests.el

index c5b0fe0bbbc4fe06243c408291732477f279d47b..34c002be271da6e55576a2913a669bb3b5de393e 100644 (file)
@@ -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 `~'.