[Bese-devel] Problems with 5am:def-suite

Luca Capello luca at pca.it
Sun Jul 1 15:57:06 UTC 2007


Hello!

The latest patches for fiveam resolved the compilation error reported
at [1] (BTW, without applying the patch at [2]), but then
5am:def-suite seems not to work as expected, at least with arnesi.  On
a Debian sid, SBCL-1.0.6.0 I obtain:

--8<---------------cut here---------------start------------->8---
; /var/cache/common-lisp-controller/1000/sbcl/local/home/luca/Hacking/debdarcs/arnesi-upstream/t/suite.fasl written
; compilation finished in 0:00:00
; compiling file "/home/luca/Hacking/debdarcs/arnesi-upstream/t/accumulation.lisp" (written 18 JUN 2007 04:56:15 PM):
; compiling (IN-PACKAGE :IT.BESE.ARNESI.TEST)
; compiling (DEF-SUITE :IT.BESE.ARNESI.ACCUMULATION ...)
; compiling (IN-SUITE :IT.BESE.ARNESI.ACCUMULATION)
debugger invoked on a SIMPLE-ERROR in thread #<THREAD "initial thread" {10025DEB61}>:
  Unkown suite IT.BESE.ARNESI.ACCUMULATION.

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [CONTINUE] Create a new suite named IT.BESE.ARNESI.ACCUMULATION.
  1: [RETRY   ] Retry performing #<ASDF:COMPILE-OP NIL {10047EBDD1}> on
                #<ASDF:CL-SOURCE-FILE "accumulation" {1004011281}>.
  2: [ACCEPT  ] Continue, treating #<ASDF:COMPILE-OP NIL {10047EBDD1}> on
                #<ASDF:CL-SOURCE-FILE "accumulation" {1004011281}> as having
                been successful.
  3: [ABORT   ] Exit debugger, returning to top level.

(NIL)
0]
--8<---------------cut here---------------end--------------->8---

Continuing (choice 0) gives similar errors for all the other suites
and then compilation finishes without any other errors.  The same
happens on CLisp-2.41.

The solution was to simply add an

  (eval-when (:compile-toplevel :load-toplevel :execute) ...)

before any (def-suite ...) in every arnesi/t/*.lisp but
read-macros.lisp and suite.lisp (darcs patch attached, tested on both
SBCL and CLisp).

Thx, bye,
Gismo / Luca

Footnotes: 
[1] http://common-lisp.net/pipermail/bese-devel/2007-May/002983.html
[2] http://common-lisp.net/pipermail/bese-devel/2007-April/002952.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: arnesi_add-eval-when-when-defining-a-test-suite_gismo-20070701.patch.gz
Type: application/octet-stream
Size: 3330 bytes
Desc: add an (eval-when ...) when defining a test suite
URL: <https://mailman.common-lisp.net/pipermail/bese-devel/attachments/20070701/c27f3a1b/attachment.obj>


More information about the bese-devel mailing list