diff options
| author | Pip Cet | 2025-06-20 14:03:40 +0000 |
|---|---|---|
| committer | Pip Cet | 2025-06-20 14:03:40 +0000 |
| commit | 1bc86b17768231afcf14e9df08629088dbded428 (patch) | |
| tree | 05da816884157028efc0bd7c9acae56c998f9acf | |
| parent | 1560e9bf66597b3bf7f389ed22ad4524ca89d4e2 (diff) | |
| download | emacs-1bc86b17768231afcf14e9df08629088dbded428.tar.gz emacs-1bc86b17768231afcf14e9df08629088dbded428.zip | |
Revert "Avoid excessively large backtraces in ert-tests (bug#71988)"
This reverts commit 0264ab11181b1d49d8f07186599396d503f24d1f.
| -rw-r--r-- | test/lisp/emacs-lisp/ert-tests.el | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/test/lisp/emacs-lisp/ert-tests.el b/test/lisp/emacs-lisp/ert-tests.el index 5ab1deee994..048ab931f50 100644 --- a/test/lisp/emacs-lisp/ert-tests.el +++ b/test/lisp/emacs-lisp/ert-tests.el | |||
| @@ -595,14 +595,9 @@ This macro is used to test if macroexpansion in `should' works." | |||
| 595 | :body (lambda () (should (equal complex-list 1)))))) | 595 | :body (lambda () (should (equal complex-list 1)))))) |
| 596 | (let ((ert-debug-on-error nil) | 596 | (let ((ert-debug-on-error nil) |
| 597 | messages) | 597 | messages) |
| 598 | (cl-letf* (((symbol-function 'cl-print-object) | 598 | (cl-letf* (((symbol-function 'message) |
| 599 | (symbol-function 'cl-print-object)) | ||
| 600 | ((symbol-function 'message) | ||
| 601 | (lambda (format-string &rest args) | 599 | (lambda (format-string &rest args) |
| 602 | (push (apply #'format format-string args) messages)))) | 600 | (push (apply #'format format-string args) messages)))) |
| 603 | ;; don't print the ert--stats-tests vector, which would run out of | ||
| 604 | ;; memory if previous tests have failed. | ||
| 605 | (cl-defmethod cl-print-object ((_object vector) _stream)) | ||
| 606 | (save-window-excursion | 601 | (save-window-excursion |
| 607 | (let ((case-fold-search nil) | 602 | (let ((case-fold-search nil) |
| 608 | (ert-batch-backtrace-right-margin nil) | 603 | (ert-batch-backtrace-right-margin nil) |
| @@ -617,9 +612,7 @@ This macro is used to test if macroexpansion in `should' works." | |||
| 617 | do | 612 | do |
| 618 | (unless found-frame | 613 | (unless found-frame |
| 619 | (setq found-frame (cl-search frame msg :test 'equal)))) | 614 | (setq found-frame (cl-search frame msg :test 'equal)))) |
| 620 | (should found-frame)))) | 615 | (should found-frame))))) |
| 621 | ;; ensure our temporary binding was undone. | ||
| 622 | (should (equal (cl-prin1-to-string [a]) "[a]"))) | ||
| 623 | 616 | ||
| 624 | (ert-deftest ert-test-special-operator-p () | 617 | (ert-deftest ert-test-special-operator-p () |
| 625 | (should (ert--special-operator-p 'if)) | 618 | (should (ert--special-operator-p 'if)) |