diff options
author | Bastien <bzg@gnu.org> | 2017-07-03 09:06:29 +0200 |
---|---|---|
committer | Bastien <bzg@gnu.org> | 2017-07-03 09:06:29 +0200 |
commit | 5ca1888fe670aee7febd4d42665d7372ab2ffebc (patch) | |
tree | 1f7f8d8a7580e556fc83cf3a6aaeec567b33a090 /test/lisp/emacs-lisp | |
parent | 20e006ffee41062f1b551a92c24d9edc53cd0f56 (diff) | |
parent | 1b4f0a92ff3505ef9a465b9b391756e3a73a6443 (diff) | |
download | emacs-5ca1888fe670aee7febd4d42665d7372ab2ffebc.tar.gz emacs-5ca1888fe670aee7febd4d42665d7372ab2ffebc.tar.bz2 emacs-5ca1888fe670aee7febd4d42665d7372ab2ffebc.zip |
Merge branch 'master' into scratch/org-mode-merge
Diffstat (limited to 'test/lisp/emacs-lisp')
-rw-r--r-- | test/lisp/emacs-lisp/cl-print-tests.el | 2 | ||||
-rw-r--r-- | test/lisp/emacs-lisp/ert-tests.el | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/test/lisp/emacs-lisp/cl-print-tests.el b/test/lisp/emacs-lisp/cl-print-tests.el index dfbe18d7844..6448a1b37f7 100644 --- a/test/lisp/emacs-lisp/cl-print-tests.el +++ b/test/lisp/emacs-lisp/cl-print-tests.el @@ -34,7 +34,7 @@ (let ((print-circle t)) (should (equal (cl-prin1-to-string `((x . ,x) (y . ,x))) "((x . #1=#s(cl-print--test :a 1 :b 2)) (y . #1#))"))) - (should (string-match "\\`#f(compiled-function (x) .*\n\n.*)\\'" + (should (string-match "\\`#f(compiled-function (x) \"[^\"]+\" [^\)]*)\\'" (cl-prin1-to-string (symbol-function #'caar)))))) (ert-deftest cl-print-tests-2 () 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) |