Add unit test for Bug#30005.

* test/src/callint-tests.el (call-interactively/embedded-nulls): New
unit test.
This commit is contained in:
Philipp Stephani 2018-01-23 23:39:18 +01:00
parent 18139139c9
commit 4c998b4e4f

View file

@ -35,4 +35,12 @@
(cdr data)
'("Invalid control letter `\u00FF' (#o377, #x00ff) in interactive calling string")))))
(ert-deftest call-interactively/embedded-nulls ()
"Check that Bug#30005 is fixed."
(should (equal (let ((unread-command-events '(?a ?b)))
(call-interactively (lambda (a b)
(interactive "ka\0a: \nkb: ")
(list a b))))
'("a" "b"))))
;;; callint-tests.el ends here