From: Andrea Corallo Date: Sat, 3 Oct 2020 19:33:08 +0000 (+0200) Subject: * Fix a test in test/lisp/subr-tests.el X-Git-Tag: emacs-28.0.90~2727^2~389 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=29f7024b6cfc01d6cae10603733b35784b4e4aef;p=emacs.git * Fix a test in test/lisp/subr-tests.el * test/lisp/subr-tests.el (subr-tests-bug22027): Redefine `read-string' with a lambda with the same number of arguments. --- diff --git a/test/lisp/subr-tests.el b/test/lisp/subr-tests.el index 035c064d75c..c3dfd27a850 100644 --- a/test/lisp/subr-tests.el +++ b/test/lisp/subr-tests.el @@ -338,7 +338,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) def))) + (lambda (_prompt _init _hist def _inher-input) def))) (setq res (read-passwd "pass: " 'confirm (mapconcat #'string default ""))) (should (string= default res)))))