[BP] MB-18452: Single threaded test harness improvements 28/65928/3
authorJim Walker <jim@couchbase.com>
Thu, 2 Jun 2016 15:05:50 +0000 (16:05 +0100)
committerDave Rigby <daver@couchbase.com>
Wed, 20 Jul 2016 08:17:47 +0000 (08:17 +0000)
commit723739eccc55537a25dfa32eb3f85f2aea729463
treed5628c5407ba96e40eb28b65fbe57aece5a760ca
parent36d772883b9bf2179694f2ca9d0575ed52135a66
[BP] MB-18452: Single threaded test harness improvements

Refactor parts of the very new evp_store_single_threaded_test so that
it's simpler to drive tasks making new tests easier to write.

The main change is to provide helper methods for running any task from
a queue (with some checks) and a way to push a clean shutdown.

Change-Id: I7add574f0768c642f3c6c7c64293e882337a1cdc
Reviewed-on: http://review.couchbase.org/65928
Well-Formed: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
src/ep_engine.cc
src/fakes/fake_executorpool.h
tests/module_tests/evp_store_single_threaded_test.cc