diff options
| author | Michael Albinus | 2014-01-13 11:53:36 +0100 |
|---|---|---|
| committer | Michael Albinus | 2014-01-13 11:53:36 +0100 |
| commit | 6a1f3c119c3a67e781eacbd0756db83ba365c185 (patch) | |
| tree | 6886aa9571d2807877ca3bf6211ca3475f99c281 | |
| parent | 6c21e306f270575a5e7a7af3b47e5230dfe5c7eb (diff) | |
| download | emacs-6a1f3c119c3a67e781eacbd0756db83ba365c185.tar.gz emacs-6a1f3c119c3a67e781eacbd0756db83ba365c185.zip | |
Bug#13064
* automated/ert-tests.el (ert-test-record-backtrace): Reenable
test case with adapted test string. (Bug#13064)
| -rw-r--r-- | test/ChangeLog | 5 | ||||
| -rw-r--r-- | test/automated/ert-tests.el | 22 |
2 files changed, 15 insertions, 12 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 1c26b408224..b14d038c9bc 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-01-13 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * automated/ert-tests.el (ert-test-record-backtrace): Reenable | ||
| 4 | test case with adapted test string. (Bug#13064) | ||
| 5 | |||
| 1 | 2013-12-28 Glenn Morris <rgm@gnu.org> | 6 | 2013-12-28 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * automated/electric-tests.el: Require 'elec-pair. | 8 | * automated/electric-tests.el: Require 'elec-pair. |
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." | |||
| 375 | (should-error (macroexpand '(ert-deftest ghi () | 375 | (should-error (macroexpand '(ert-deftest ghi () |
| 376 | :documentation "foo")))) | 376 | :documentation "foo")))) |
| 377 | 377 | ||
| 378 | ;; FIXME Test disabled due to persistent failure owing to lexical binding. | 378 | (ert-deftest ert-test-record-backtrace () |
| 379 | ;; http://debbugs.gnu.org/13064 | 379 | (let ((test (make-ert-test :body (lambda () (ert-fail "foo"))))) |
| 380 | ;;; (ert-deftest ert-test-record-backtrace () | 380 | (let ((result (ert-run-test test))) |
| 381 | ;;; (let ((test (make-ert-test :body (lambda () (ert-fail "foo"))))) | 381 | (should (ert-test-failed-p result)) |
| 382 | ;;; (let ((result (ert-run-test test))) | 382 | (with-temp-buffer |
| 383 | ;;; (should (ert-test-failed-p result)) | 383 | (ert--print-backtrace (ert-test-failed-backtrace result)) |
| 384 | ;;; (with-temp-buffer | 384 | (goto-char (point-min)) |
| 385 | ;;; (ert--print-backtrace (ert-test-failed-backtrace result)) | 385 | (end-of-line) |
| 386 | ;;; (goto-char (point-min)) | 386 | (let ((first-line (buffer-substring-no-properties (point-min) (point)))) |
| 387 | ;;; (end-of-line) | 387 | (should (equal first-line " (closure (ert--test-body-was-run t) nil (ert-fail \"foo\"))()"))))))) |
| 388 | ;;; (let ((first-line (buffer-substring-no-properties (point-min) (point)))) | ||
| 389 | ;;; (should (equal first-line " signal(ert-test-failed (\"foo\"))"))))))) | ||
| 390 | 388 | ||
| 391 | (ert-deftest ert-test-messages () | 389 | (ert-deftest ert-test-messages () |
| 392 | :tags '(:causes-redisplay) | 390 | :tags '(:causes-redisplay) |