LUMIERA.clone/tests/30backend-threadpool.tests
Michael Ploujnikov dc87e78590 add a two-thread acquire test
currently this results in a deadlock between lumiera_threadpool_destroy() and thread_loop()
2010-01-26 17:02:31 -05:00

26 lines
531 B
Text

TESTING "Thread Pools" ./test-threadpool
PLANNED "create"
PLANNED "yield"
PLANNED "cancel"
TEST "Most basic threadpool test" threadpool-basic <<END
END
TEST "process a function" process-function <<END
err: the input to the function is
err: the result is 1
END
TEST "acquire two threads" two-thread-acquire <<END
err: acquiring thread 1
err: acquiring thread 2
err: thread 1 kind=INTERACTIVE
err: thread 1 state=IDLE
err: thread 2 kind=INTERACTIVE
err: thread 2 state=IDLE
err: cleaning up
END
PLANNED "error cleared on join"