diff options
author | Noam Postavsky <npostavs@gmail.com> | 2017-06-29 19:42:32 -0400 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2017-06-29 19:42:32 -0400 |
commit | 169532b0ebc3acb0b1c943d0b3d8b569cd57ca4b (patch) | |
tree | 60d7ae515b92944d1e90772df3ae5dac05b5c715 /test/lisp/emacs-lisp/ert-tests.el | |
parent | 138447c3abd749d1c27d99d7089b1b0903352ade (diff) | |
parent | c87c87fcc361494815bbd1d92f450b0b80a3ecbb (diff) | |
download | emacs-169532b0ebc3acb0b1c943d0b3d8b569cd57ca4b.tar.gz emacs-169532b0ebc3acb0b1c943d0b3d8b569cd57ca4b.tar.bz2 emacs-169532b0ebc3acb0b1c943d0b3d8b569cd57ca4b.zip |
; Merge: Backtrace printing improvements (Bug#6991)
Diffstat (limited to 'test/lisp/emacs-lisp/ert-tests.el')
-rw-r--r-- | test/lisp/emacs-lisp/ert-tests.el | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/lisp/emacs-lisp/ert-tests.el b/test/lisp/emacs-lisp/ert-tests.el index fc5790c3659..317838b250f 100644 --- a/test/lisp/emacs-lisp/ert-tests.el +++ b/test/lisp/emacs-lisp/ert-tests.el @@ -367,12 +367,8 @@ This macro is used to test if macroexpansion in `should' works." (test (make-ert-test :body test-body)) (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 (format " %S()" test-body))))))) + (should (eq (nth 1 (car (ert-test-failed-backtrace result))) + 'signal)))) (ert-deftest ert-test-messages () :tags '(:causes-redisplay) |