Fix some tests for builds without sb-eval.
authorLutz Euler <lutz.euler@freenet.de>
Sat, 6 Oct 2012 16:56:19 +0000 (18:56 +0200)
committerLutz Euler <lutz.euler@freenet.de>
Sat, 6 Oct 2012 16:56:19 +0000 (18:56 +0200)
Conditionalize on #+SB-EVAL test parts that bind *EVALUATOR-MODE* to
:INTERPRET. The affected tests are:
- compiler.pure.lisp / :multiple-args-to-function
- eval.impure.lisp / (eval :empty-let-is-not-toplevel)

tests/compiler.pure.lisp
tests/eval.impure.lisp

index b28fe61..85d4d1c 100644 (file)
 (with-test (:name :multiple-args-to-function)
   (let ((form `(flet ((foo (&optional (x 13)) x))
                  (funcall (function foo 42))))
-        (*evaluator-mode* :interpret))
+        #+sb-eval (*evaluator-mode* :interpret))
+    #+sb-eval
     (assert (eq :error
                 (handler-case (eval form)
                   (error () :error))))
index f70216c..392b224 100644 (file)
     (assert (eq :fun (empty-let-is-not-toplevel-fun))))
   ;; While at it, test that we get the late binding under
   ;; interpreter mode.
+  #+sb-eval
   (let ((sb-ext:*evaluator-mode* :interpret))
     (eval `(let ()
              (defmacro empty-let-is-not-toplevel-x () :macro)