X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Ftesting%2FTestStep.cpp;h=5355024a5dae217077d6b675a3a069d5609959ab;hp=d975ddd112ebf3396bdb411c4ba229ba83fafe4e;hb=21054b5919e21b14627fac09e718262ae2812af4;hpb=882e3764e48fdf93aeb078c1832b10a956288da3 diff --git a/source/testing/TestStep.cpp b/source/testing/TestStep.cpp index d975ddd..5355024 100644 --- a/source/testing/TestStep.cpp +++ b/source/testing/TestStep.cpp @@ -56,8 +56,8 @@ namespace { void cmdRunOnThread (TestStepCmd *step, const std::string &cmd) { - // Thread running: - step->setThreadRunning(true); + // Thread running (will be set to false at complete()): + step->setThreadRunning(); int status = -2; @@ -757,7 +757,7 @@ void TestStepCmd::do_complete() throw() { std::cout << "Executed Command Test Step (" << a_script << ") [rc=" << a_resultCode << "]" << std::endl; } - a_threadRunning = false; + setThreadNotRunning(); if (a_threadDeprecated) { a_threadDeprecated = false; do_reset();