28 lines
569 B
Text
28 lines
569 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: start by initializing the threadpool
|
|
err: acquiring thread 1
|
|
err: acquiring thread 2
|
|
err: thread 1 state=IDLE
|
|
err: thread 2 state=IDLE
|
|
err: cleaning up
|
|
END
|
|
|
|
TEST "many sleepy threads" many-sleepy-threads <<END
|
|
END
|
|
|
|
PLANNED "error cleared on join"
|