a few more tests to skip on unithreaded builds
authorNikodemus Siivola <nikodemus@random-state.net>
Sat, 9 Jun 2012 17:31:27 +0000 (20:31 +0300)
committerNikodemus Siivola <nikodemus@random-state.net>
Sat, 9 Jun 2012 17:31:27 +0000 (20:31 +0300)
tests/threads.pure.lisp

index e785e73..2a2a6c4 100644 (file)
@@ -20,7 +20,8 @@
 
 (use-package :test-util)
 
-(with-test (:name atomic-update)
+(with-test (:name atomic-update
+            :skipped-on '(not :sb-thread))
   (let ((x (cons :count 0)))
     (mapc #'sb-thread:join-thread
           (loop repeat 1000
     (try-semaphore sem 1 note)
     (assert (semaphore-notification-status note))))
 
-(with-test (:name (:return-from-thread :normal-thread))
+(with-test (:name (:return-from-thread :normal-thread)
+            :skipped-on '(not :sb-thread))
   (let* ((thread (make-thread (lambda ()
                                 (return-from-thread (values 1 2 3))
                                 :foo)))
                 (thread-error ()
                   :oops)))))
 
-(with-test (:name (:abort-thread :normal-thread))
+(with-test (:name (:abort-thread :normal-thread)
+            :skipped-on '(not :sb-thread))
   (let ((thread (make-thread (lambda ()
                                (abort-thread)
                                :foo))))