X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=contrib%2Fsb-concurrency%2Ftests%2Ftest-frlock.lisp;h=64f4dcc915611ff1bc310a38fb695dde3cf203f9;hb=92f0ce474660fa51f33126f07ef7103b8b8843c3;hp=466ce8a40179e4481134f3246f5ab4c2872060ef;hpb=2f9585060d5fe2c525955d80f34123761ded80fe;p=sbcl.git diff --git a/contrib/sb-concurrency/tests/test-frlock.lisp b/contrib/sb-concurrency/tests/test-frlock.lisp index 466ce8a..64f4dcc 100644 --- a/contrib/sb-concurrency/tests/test-frlock.lisp +++ b/contrib/sb-concurrency/tests/test-frlock.lisp @@ -11,6 +11,12 @@ (in-package :sb-concurrency-test) +(defmacro deftest* ((name &key fails-on) form &rest results) + `(progn + (when (sb-impl::featurep ',fails-on) + (pushnew ',name sb-rt::*expected-failures*)) + (deftest ,name ,form ,@results))) + (defun test-frlocks (&key (reader-count 100) (read-count 1000000) (outer-read-pause 0) (inner-read-pause 0) (writer-count 10) (write-count 10000) @@ -73,7 +79,11 @@ nil)))) (values (cdr w-e!) (cdr r-e!)))) -(deftest frlock.1 - (test-frlocks) +#+sb-thread +(deftest* (frlock.1 :fails-on :win32) + (handler-case + (sb-ext:with-timeout 60 (test-frlocks)) + (sb-ext:timeout (c) + (error "~A" c))) nil nil)