summaryrefslogtreecommitdiff
path: root/test/lisp/subr-tests.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-04-27 01:31:52 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-04-27 01:31:52 +0200
commitbd5aebce03b3e67007a4ea517b9938b729f97a14 (patch)
tree50a5f93d2f748569e9e02f3d2837130b3f0b231f /test/lisp/subr-tests.el
parente1562bbab333a96c492a9f181816e9e6f80ea0d0 (diff)
downloademacs-bd5aebce03b3e67007a4ea517b9938b729f97a14.tar.gz
emacs-bd5aebce03b3e67007a4ea517b9938b729f97a14.tar.bz2
emacs-bd5aebce03b3e67007a4ea517b9938b729f97a14.zip
Fix failing subr test
* test/lisp/subr-tests.el (subr-tests-bug22027): Fix mocked signature of `read-string' (bug#48022).
Diffstat (limited to 'test/lisp/subr-tests.el')
-rw-r--r--test/lisp/subr-tests.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lisp/subr-tests.el b/test/lisp/subr-tests.el
index 8fa3917a0b9..1e146732163 100644
--- a/test/lisp/subr-tests.el
+++ b/test/lisp/subr-tests.el
@@ -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)))))