fuzzer: Fix description of skipped operation

Only generate the description after all other dockwidgets are placed
, as the state of the others will be in the last description too
This commit is contained in:
Sergio Martins
2020-01-22 12:47:42 +00:00
parent 7c10ab37f4
commit d738fbd154

View File

@@ -84,10 +84,7 @@ void Fuzzer::runTest(const Test &test, bool skipLastAndPause)
int index = 0;
auto operations = test.operations;
if (skipLastAndPause) {
auto last = operations.takeLast();
qDebug() << "Skipping" << last->toString() << "\n";
}
auto last = operations.takeLast();
for (const auto &op : operations) {
index++;
@@ -98,7 +95,9 @@ void Fuzzer::runTest(const Test &test, bool skipLastAndPause)
DockRegistry::self()->checkSanityAll();
}
if (!skipLastAndPause) {
if (skipLastAndPause) {
qDebug() << "Skipped" << last->toString() << "\n";
} else {
for (MainWindowBase *mw : DockRegistry::self()->mainwindows())
delete mw;