]> git.eshelyaron.com Git - emacs.git/commitdiff
Add a (broken) unit test to exemplify Bug#11218.
authorPhilipp Stephani <phst@google.com>
Tue, 24 Nov 2020 17:38:36 +0000 (18:38 +0100)
committerPhilipp Stephani <phst@google.com>
Tue, 24 Nov 2020 17:39:58 +0000 (18:39 +0100)
* test/lisp/emacs-lisp/ert-tests.el
(ert-test-with-demoted-errors): New (broken) unit test.

test/lisp/emacs-lisp/ert-tests.el

index 96189356c0205ec84ecd5c17b9f4be7623438835..1f54c8d07e4be22ccd325d4c99037bb6d91e2db6 100644 (file)
@@ -801,6 +801,11 @@ This macro is used to test if macroexpansion in `should' works."
     (should (eql 0 (ert-stats-completed-unexpected stats)))
     (should (eql 1 (ert-stats-skipped stats)))))
 
+(ert-deftest ert-test-with-demoted-errors ()
+  "Check that ERT correctly handles `with-demoted-errors'."
+  :expected-result :failed  ;; FIXME!  Bug#11218
+  (should-not (with-demoted-errors (error "Foo"))))
+
 
 (provide 'ert-tests)