diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2014-01-13 11:53:36 +0100 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2014-01-13 11:53:36 +0100 |
commit | 6a1f3c119c3a67e781eacbd0756db83ba365c185 (patch) | |
tree | 6886aa9571d2807877ca3bf6211ca3475f99c281 /test/automated/ert-tests.el | |
parent | 6c21e306f270575a5e7a7af3b47e5230dfe5c7eb (diff) | |
download | emacs-6a1f3c119c3a67e781eacbd0756db83ba365c185.tar.gz emacs-6a1f3c119c3a67e781eacbd0756db83ba365c185.tar.bz2 emacs-6a1f3c119c3a67e781eacbd0756db83ba365c185.zip |
Bug#13064
* automated/ert-tests.el (ert-test-record-backtrace): Reenable
test case with adapted test string. (Bug#13064)
Diffstat (limited to 'test/automated/ert-tests.el')
-rw-r--r-- | test/automated/ert-tests.el | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/test/automated/ert-tests.el b/test/automated/ert-tests.el index 5d50bafd0da..53cbd1f1f88 100644 --- a/test/automated/ert-tests.el +++ b/test/automated/ert-tests.el @@ -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) |