Rebind *package* also when compiling the tests
authorAttila Lendvai <attila.lendvai@gmail.com>
Sat, 9 Dec 2006 15:47:34 +0000 (16:47 +0100)
committerattila.lendvai <attila.lendvai@gmail.com>
Sat, 9 Dec 2006 15:47:34 +0000 (16:47 +0100)
src/test.lisp

index f5c8a82..99bc8bb 100644 (file)
@@ -58,7 +58,8 @@ SUITE defaults to the current value of *SUITE*."
                                                 :runtime-package ,*package*
                                                 :test-lambda
                                                 (lambda ()
-                                                  (funcall (compile nil '(lambda () ,@body))))
+                                                  (funcall (let ((*package* ,*package*))
+                                                             (compile nil '(lambda () ,@body)))))
                                                 :description ,description
                                                 :depends-on ',depends-on))
         ,(if suite-supplied-p