X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Ftesting%2FTestCase.cpp;h=d048dfc2284d47334001f7e1d8154816d5850196;hp=f8d7a986f326d8868c5d5f011e1434863b077c09;hb=bfedf5aed2670ccd65405c0ff96539ccb88b8f23;hpb=30def5757c5b3411f77fff62a163241ecc616337 diff --git a/source/testing/TestCase.cpp b/source/testing/TestCase.cpp index f8d7a98..d048dfc 100644 --- a/source/testing/TestCase.cpp +++ b/source/testing/TestCase.cpp @@ -211,6 +211,12 @@ bool TestCase::reset(bool hard) throw() { // Soft reset if finished: if (!hard /* is soft reset */ && !isFinished()) return false; + // Dump as failed if still in progress (hard reset): + if (getState() == State::InProgress) { + addDebugSummaryHint("Testcase hard reset while in progress"); + setState(State::Failed); + } + // Clean stage //////////////////////////// // id is kept std::vector::iterator it;