Silence a warning from the test harness for unthreaded builds.
authorLutz Euler <lutz.euler@freenet.de>
Sat, 2 Mar 2013 18:52:19 +0000 (19:52 +0100)
committerLutz Euler <lutz.euler@freenet.de>
Sat, 2 Mar 2013 18:52:19 +0000 (19:52 +0100)
"The variable THREADS is defined but never used.", so, in WITH-TEST only
bind THREADS under #+SB-THREAD as all places where this variable is used
are guarded by this feature expression, too.

tests/test-util.lisp

index 20b2c54..d6246bf 100644 (file)
@@ -39,7 +39,7 @@
 (defmacro with-test ((&key fails-on broken-on skipped-on name)
                      &body body)
   (let ((block-name (gensym))
-        (threads    (gensym "THREADS")))
+        #+sb-thread (threads (gensym "THREADS")))
     `(progn
        (start-test)
        (cond