File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1947,7 +1947,7 @@ before it's processed by other functions."
1947
1947
(kill-buffer print-buffer)
1948
1948
(setq print-buffer nil ))
1949
1949
; ; define a buttercup-reporter-batch variant that only outputs on
1950
- ; ; buttercup-done
1950
+ ; ; buttercup-done, because that is where backtraces are printed
1951
1951
(before-each
1952
1952
(spy-on 'backtrace-reporter :and-call-fake
1953
1953
(lambda (event arg )
@@ -1960,11 +1960,12 @@ before it's processed by other functions."
1960
1960
(spy-on 'buttercup-reporter-batch--print-summary ))
1961
1961
; ; define a known backtrace with a typical error
1962
1962
(before-all
1963
- (defun bc-bt-foo (a ) (bc-bt-bar a))
1964
- (defun bc-bt-bar (a ) (bc-bt-baz a))
1965
- (defun bc-bt-baz (a )
1963
+ (defun bc-bt-baz (a )
1966
1964
(or (number-or-marker-p a)
1967
- (signal 'wrong-type-argument `(number-or-marker-p , a )))))
1965
+ (signal 'wrong-type-argument `(number-or-marker-p , a ))))
1966
+ (with-no-warnings
1967
+ (defun bc-bt-bar (a ) (bc-bt-baz a))
1968
+ (defun bc-bt-foo (a ) (bc-bt-bar a))))
1968
1969
(after-all
1969
1970
(fmakunbound 'bc-bt-foo )
1970
1971
(fmakunbound 'bc-bt-bar )
@@ -2012,6 +2013,8 @@ before it's processed by other functions."
2012
2013
(bc-bt-foo long-string)
2013
2014
:to-be-truthy )))
2014
2015
(setq test-suites buttercup-suites)))
2016
+ (after-each
2017
+ (setq test-suites nil ))
2015
2018
(it " `crop' should print truncated lines"
2016
2019
(with-local-buttercup
2017
2020
:suites test-suites :reporter #'backtrace-reporter
You can’t perform that action at this time.
0 commit comments