lumiera_/tests/30backend-threadpool.tests

46 lines
932 B
Text
Raw Normal View History

2007-08-21 17:33:19 +02:00
2009-11-24 01:05:57 +01:00
TESTING "Thread Pools" ./test-threadpool
2007-08-21 17:33:19 +02:00
PLANNED "create"
PLANNED "yield"
PLANNED "cancel"
2009-11-24 01:05:57 +01:00
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
2010-01-17 17:34:23 +01:00
TEST "acquire two threads" two-thread-acquire <<END
2010-01-30 04:01:48 +01:00
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
TEST "simple sync" simple-sync <<END
err: syncing with the other thread
err: result is 0
END
# Broken, needs better test drive (planned features for dispatching output)
PLANNED "sync many" sync-many <<END
err(worker_): result is 0
err(thread_1): value is 84
END
2010-02-03 23:06:27 +01:00
TEST "joinable thread" joinable-thread <<END
END
PLANNED "sync joinable" sync-joinable <<END
END
2010-01-17 17:34:23 +01:00
PLANNED "error cleared on join"