projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
killing lutexes, adding timeouts
[sbcl.git]
/
tests
/
test-util.lisp
diff --git
a/tests/test-util.lisp
b/tests/test-util.lisp
index
2e278ae
..
92a4b32
100644
(file)
--- a/
tests/test-util.lisp
+++ b/
tests/test-util.lisp
@@
-55,14
+55,18
@@
(incf *test-count*))
(defun fail-test (type test-name condition)
(incf *test-count*))
(defun fail-test (type test-name condition)
- (log-msg "~@<~A ~S ~:_due to ~S: ~4I~:_\"~A\"~:>"
- type test-name condition condition)
+ (if (stringp condition)
+ (log-msg "~@<~A ~S ~:_~A~:>"
+ type test-name condition)
+ (log-msg "~@<~A ~S ~:_due to ~S: ~4I~:_\"~A\"~:>"
+ type test-name condition condition))
(push (list type *test-file* (or test-name *test-count*))
*failures*)
(push (list type *test-file* (or test-name *test-count*))
*failures*)
- (when (or (and *break-on-failure*
- (not (eq type :expected-failure)))
- *break-on-expected-failure*)
- (really-invoke-debugger condition)))
+ (unless (stringp condition)
+ (when (or (and *break-on-failure*
+ (not (eq type :expected-failure)))
+ *break-on-expected-failure*)
+ (really-invoke-debugger condition))))
(defun expected-failure-p (fails-on)
(sb-impl::featurep fails-on))
(defun expected-failure-p (fails-on)
(sb-impl::featurep fails-on))