X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Ftest.lisp;h=29e836189709a8f2f445b8f0ce86912a2741c452;hb=5c649363640c2060387ed91132791e52e2c52c11;hp=9190003a73cc78b18cfb017ec47ed58fd8fc1b43;hpb=8e2b8ea5671d45cd1b3efdd037af289200e6e0a8;p=fiveam.git diff --git a/src/test.lisp b/src/test.lisp index 9190003..29e8361 100644 --- a/src/test.lisp +++ b/src/test.lisp @@ -50,9 +50,9 @@ FIXTURE specifies a fixtrue to wrap the body in. If PROFILE is T profiling information will be collected as well." (let* ((tmp (gensym)) (suite-arg (getf (cdr (ensure-list name)) :suite tmp)) - (suite (cond - ((eq tmp suite-arg) *suite*) - (t (get-test suite-arg))))) + (suite-form (cond + ((eq tmp suite-arg) '*suite*) + (t `(get-test ',suite-arg))))) (when (consp name) (remf (cdr name) :suite)) (destructuring-bind (name &key depends-on (compile-at :run-time) fixture profile) @@ -81,7 +81,7 @@ If PROFILE is T profiling information will be collected as well." :description ,description :depends-on ',depends-on :collect-profiling-info ,profile)) - (setf (gethash ',name (tests (get-test ',(name suite)))) ',name) + (setf (gethash ',name (tests ,suite-form)) ',name) (when *run-test-when-defined* (run! ',name)) ',name)))))