Disable some sb-concurrency tests on win32.
[sbcl.git] / tests / interface.impure.lisp
index 52b5fc2..175edce 100644 (file)
     "bar"
     (incf x y)))
 
-(with-test (:name (documentation closure))
+(with-test (:name (documentation :closure))
   (assert (string= (documentation 'docfoo 'function) "bar"))
   (assert (string= (setf (documentation 'docfoo 'function) "baz") "baz"))
   (assert (string= (documentation 'docfoo 'function) "baz"))
   (assert (not (setf (documentation 'docfoo 'function) nil)))
   (assert (not (documentation 'docfoo 'function))))
 
-(with-test (:name (documentation built-in-macro) :skipped-on '(not :sb-doc))
+(with-test (:name (documentation :built-in-macro) :skipped-on '(not :sb-doc))
   (assert (documentation 'trace 'function)))
 
-(with-test (:name (documentation built-in-function) :skipped-on '(not :sb-doc))
+(with-test (:name (documentation :built-in-function) :skipped-on '(not :sb-doc))
   (assert (documentation 'cons 'function)))
 
 (with-test (:name :describe-generic-function-with-assumed-type)
            (equal (documentation 'test 'function)
                   (documentation 'test2 'function)))))
 
+(with-test (:name :setf-documentation-on-nil)
+  (assert
+   (handler-case
+       (assert (equal (setf (documentation nil 'function) "foo") "foo"))
+     (style-warning () t)
+     (:no-error (x)
+       (declare (ignore x))
+       nil))))
+
 \f
 ;;;; success