From d738fbd154c520149924cfe0bf34f758c9ee1f82 Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Wed, 22 Jan 2020 12:47:42 +0000 Subject: [PATCH] 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 --- tests/fuzzer/Fuzzer.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/fuzzer/Fuzzer.cpp b/tests/fuzzer/Fuzzer.cpp index 63c83c8f..26ca2d2e 100644 --- a/tests/fuzzer/Fuzzer.cpp +++ b/tests/fuzzer/Fuzzer.cpp @@ -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;