emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 5804ac0: Add a (broken) unit test to exemplify Bug#11218.


From: Philipp Stephani
Subject: master 5804ac0: Add a (broken) unit test to exemplify Bug#11218.
Date: Tue, 24 Nov 2020 12:40:11 -0500 (EST)

branch: master
commit 5804ac0b49a9b98daa7eea5fbb94942601cd088c
Author: Philipp Stephani <phst@google.com>
Commit: Philipp Stephani <phst@google.com>

    Add a (broken) unit test to exemplify Bug#11218.
    
    * test/lisp/emacs-lisp/ert-tests.el
    (ert-test-with-demoted-errors): New (broken) unit test.
---
 test/lisp/emacs-lisp/ert-tests.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/lisp/emacs-lisp/ert-tests.el 
b/test/lisp/emacs-lisp/ert-tests.el
index 9618935..1f54c8d 100644
--- a/test/lisp/emacs-lisp/ert-tests.el
+++ b/test/lisp/emacs-lisp/ert-tests.el
@@ -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)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]