Commit 60ffbc7c authored by Igor Kushnir's avatar Igor Kushnir

Fix a new test_documentcontroller test failure

300ea014 introduced
DocumentControllerPrivate::shuttingDown variable. It is set to false in
constructor and to true in DocumentController::cleanup(). However
TestDocumentController::init() calls DocumentController::initialize()
before each test function; TestDocumentController::cleanup() calls
DocumentController::cleanup() after each test function. So the second
test function fails to open a document after shutdown.

Let us set DocumentControllerPrivate::shuttingDown to false in
DocumentController::initialize() to fix the test failure.
parent 300ea014
Pipeline #37914 failed with stage
in 61 minutes and 8 seconds
......@@ -572,6 +572,9 @@ DocumentController::DocumentController( QObject *parent )
void DocumentController::initialize()
{
Q_D(DocumentController);
d->shuttingDown = false; // required by test_documentcontroller
}
void DocumentController::cleanup()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment