MB-20697: ep_testsuite: restore deleted DB dir before cleanup 81/67681/4
authorDave Rigby <daver@couchbase.com>
Wed, 14 Sep 2016 17:52:49 +0000 (18:52 +0100)
committerDave Rigby <daver@couchbase.com>
Tue, 27 Sep 2016 13:48:30 +0000 (13:48 +0000)
commit5fe4831e70c98a5a4db92e5e6b0b586729fbe651
tree0bab8451bac75321a994ad97bc3950bda8b699a7
parentdba7ccecf032d82b7b47948d376c64a56593a1b5
MB-20697: ep_testsuite: restore deleted DB dir before cleanup

In some environments (seen on Windows VM), the regression test for
MB-20697 can hang forever during cleanup due to the writer thread being
stuck in an infinite loop trying to flush to disk.

To address this, re-create the database directory before shutting down
EPStore (after the test is complete).

Change-Id: I474e77bafbe5b30858d9a306669c52713890f846
Reviewed-on: http://review.couchbase.org/67681
Reviewed-by: Daniel Owen <owend@couchbase.com>
Reviewed-by: Manu Dhundi <manu@couchbase.com>
Well-Formed: buildbot <build@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
tests/ep_testsuite.cc