projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.pre7.14.flaky4.5:
[sbcl.git]
/
tests
/
assertoid.lisp
diff --git
a/tests/assertoid.lisp
b/tests/assertoid.lisp
index
4b1e9bf
..
c6dd931
100644
(file)
--- a/
tests/assertoid.lisp
+++ b/
tests/assertoid.lisp
@@
-14,6
+14,13
@@
(cl:in-package :cl-user)
(cl:in-package :cl-user)
+(defmacro grab-condition (&body body)
+ `(nth-value 1
+ (ignore-errors ,@body)))
+
+(defmacro raises-error? (&body body)
+ `(typep (nth-value 1 (ignore-errors ,@body)) 'error))
+
;;; EXPR is an expression to evaluate (both with EVAL and with
;;; COMPILE/FUNCALL). EXTRA-OPTIMIZATIONS is a list of lists of
;;; optimizations to pass to (DECLARE (OPTIMIZE ..)), to cause the
;;; EXPR is an expression to evaluate (both with EVAL and with
;;; COMPILE/FUNCALL). EXTRA-OPTIMIZATIONS is a list of lists of
;;; optimizations to pass to (DECLARE (OPTIMIZE ..)), to cause the