Bug#13064
* automated/ert-tests.el (ert-test-record-backtrace): Reenable test case with adapted test string. (Bug#13064)
This commit is contained in:
parent
6c21e306f2
commit
6a1f3c119c
2 changed files with 15 additions and 12 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-01-13 Michael Albinus <michael.albinus@gmx.de>
|
||||
|
||||
* automated/ert-tests.el (ert-test-record-backtrace): Reenable
|
||||
test case with adapted test string. (Bug#13064)
|
||||
|
||||
2013-12-28 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* automated/electric-tests.el: Require 'elec-pair.
|
||||
|
|
|
@ -375,18 +375,16 @@ This macro is used to test if macroexpansion in `should' works."
|
|||
(should-error (macroexpand '(ert-deftest ghi ()
|
||||
:documentation "foo"))))
|
||||
|
||||
;; FIXME Test disabled due to persistent failure owing to lexical binding.
|
||||
;; http://debbugs.gnu.org/13064
|
||||
;;; (ert-deftest ert-test-record-backtrace ()
|
||||
;;; (let ((test (make-ert-test :body (lambda () (ert-fail "foo")))))
|
||||
;;; (let ((result (ert-run-test test)))
|
||||
;;; (should (ert-test-failed-p result))
|
||||
;;; (with-temp-buffer
|
||||
;;; (ert--print-backtrace (ert-test-failed-backtrace result))
|
||||
;;; (goto-char (point-min))
|
||||
;;; (end-of-line)
|
||||
;;; (let ((first-line (buffer-substring-no-properties (point-min) (point))))
|
||||
;;; (should (equal first-line " signal(ert-test-failed (\"foo\"))")))))))
|
||||
(ert-deftest ert-test-record-backtrace ()
|
||||
(let ((test (make-ert-test :body (lambda () (ert-fail "foo")))))
|
||||
(let ((result (ert-run-test test)))
|
||||
(should (ert-test-failed-p result))
|
||||
(with-temp-buffer
|
||||
(ert--print-backtrace (ert-test-failed-backtrace result))
|
||||
(goto-char (point-min))
|
||||
(end-of-line)
|
||||
(let ((first-line (buffer-substring-no-properties (point-min) (point))))
|
||||
(should (equal first-line " (closure (ert--test-body-was-run t) nil (ert-fail \"foo\"))()")))))))
|
||||
|
||||
(ert-deftest ert-test-messages ()
|
||||
:tags '(:causes-redisplay)
|
||||
|
|
Loading…
Add table
Reference in a new issue