]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/src/minibuf-tests.el (test-inhibit-interaction): Fix test.
authorStefan Kangas <stefan@marxist.se>
Mon, 1 Feb 2021 05:47:36 +0000 (06:47 +0100)
committerStefan Kangas <stefan@marxist.se>
Mon, 1 Feb 2021 11:29:10 +0000 (12:29 +0100)
test/src/minibuf-tests.el

index 28119fc999eb30f26734439664f4765fde29241c..c55611eb84b732bf337453f41b52005262936de6 100644 (file)
 
 (ert-deftest test-inhibit-interaction ()
   (let ((inhibit-interaction t))
-    (should-error (read-from-minibuffer "foo: "))
+    (should-error (read-from-minibuffer "foo: ") :type 'inhibited-interaction)
 
-    (should-error (y-or-n-p "foo: "))
-    (should-error (yes-or-no-p "foo: "))
-    (should-error (read-blanks-no-input "foo: "))
+    (should-error (y-or-n-p "foo: ") :type 'inhibited-interaction)
+    (should-error (yes-or-no-p "foo: ") :type 'inhibited-interaction)
+    (should-error (read-no-blanks-input "foo: ") :type 'inhibited-interaction)
 
     ;; See that we get the expected error.
     (should (eq (condition-case nil