tgutu / clunit

CLUnit: A Common Lisp Unit Testing Framework.
http://tgutu.github.com/clunit
MIT License
23 stars 5 forks source link

Had to :use alexandria in package.lisp and add it to :depends-on in clunit.asd #1

Closed orthecreedence closed 12 years ago

orthecreedence commented 12 years ago

It looks like you're depending on with-gensyms without having alexandria in the :depends-on in clunit.asd or package.lisp. This was giving me errors:

Undefined function CLUNIT::RESULT called with arguments () .

Once I imported/used alexandria, everything worked fine.

tgutu commented 12 years ago

I have a definition of it in the utility-macros file. It seems the :serial t option does not always work the way I think when loading the asdf on some systems but not all.

Did you by any chance edit one of the files and tried reloading? That might be the cause. I sometimes got the error if I modified one of the 'macro' files because the with-gensyms definition was not reloaded. I will move the definition into the main macro file if that was not the cause.

Thanks.

orthecreedence commented 12 years ago

I didn't edit any of the files, just cloned the git repo and started playing with it. Thanks for checking it out.

tgutu commented 12 years ago

Made the following change to the ASDF:

        (:module "macros"
            :serial t
            :components
                ((:file "utility-macros")
                 (:file "assertion-macros")
                 (:file "defmacros")))

I think the :serial t option at the top only affected the order of the :components at that given level. I thought it filtered all the way down. Hopefully this will solve the problem.