]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix failing subr test
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 26 Apr 2021 23:31:52 +0000 (01:31 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 26 Apr 2021 23:31:52 +0000 (01:31 +0200)
* test/lisp/subr-tests.el (subr-tests-bug22027): Fix mocked
signature of `read-string' (bug#48022).

test/lisp/subr-tests.el

index 8fa3917a0b956f9d79a0a2c1bcb51d077ab9850a..1e146732163384fe9e082419327cf9fe0375dfff 100644 (file)
@@ -382,7 +382,7 @@ cf. Bug#25477."
   "Test for https://debbugs.gnu.org/22027 ."
   (let ((default "foo") res)
     (cl-letf (((symbol-function 'read-string)
-               (lambda (_prompt _init _hist def _inher-input) def)))
+               (lambda (_prompt &optional _init _hist def _inher-input) def)))
       (setq res (read-passwd "pass: " 'confirm (mapconcat #'string default "")))
       (should (string= default res)))))