X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fclos-cache.impure.lisp;h=c3e07d62caf7925fb4db4c1f7b77d843423b21fe;hb=87cd7d9848d9beddbf74e9d56a0c0aea6e189ead;hp=e7a2971bfc4b01ff8351e65b924191fbcda43d1f;hpb=d8659f1e656234e8f0f47d5295b503dd6cff4aba;p=sbcl.git diff --git a/tests/clos-cache.impure.lisp b/tests/clos-cache.impure.lisp index e7a2971..c3e07d6 100644 --- a/tests/clos-cache.impure.lisp +++ b/tests/clos-cache.impure.lisp @@ -64,9 +64,9 @@ (write-line string))))) (defun test-loop () - (note "/~S waiting for permission to run" sb-thread:*current-thread*) - (loop until *run-cache-test*) - (note "/~S joining the tundering herd" sb-thread:*current-thread*) + (note "/~S waiting for permission to run" sb-thread:*current-thread*) + (loop until *run-cache-test* do (sb-thread:thread-yield)) + (note "/~S joining the thundering herd" sb-thread:*current-thread*) (handler-case (loop repeat 1024 do (test-cache)) (error (e) @@ -82,8 +82,10 @@ (mapcar #'sb-thread:join-thread threads)) #-sb-thread -(loop repeat 4 - do (test-loop)) +(progn + (setf *run-cache-test* t) + (loop repeat 4 + do (test-loop))) ;;; Check that the test tests what it was supposed to test: the cache. (assert (sb-pcl::cache-p (sb-pcl::gf-dfun-cache #'cache-test)))