Terminate session execution if fatal error is caught.
authorJarkko Pöyry <jpoyry@google.com>
Tue, 7 Apr 2015 03:39:33 +0000 (20:39 -0700)
committerJarkko Pöyry <jpoyry@google.com>
Tue, 7 Apr 2015 03:39:33 +0000 (20:39 -0700)
Bug: 20095156
Change-Id: If6b4b255fda1e89710c7b5c695858306575fe95b

framework/common/tcuTestSessionExecutor.cpp

index ce0a0098eca09df62d4d861735115f7cb8c20e22..4fcfff3a65025065af7f9290086f91c905759f24 100644 (file)
@@ -62,7 +62,7 @@ TestSessionExecutor::~TestSessionExecutor (void)
 
 bool TestSessionExecutor::iterate (void)
 {
-       for (;;)
+       while (!m_abortSession)
        {
                switch (m_state)
                {
@@ -144,7 +144,6 @@ bool TestSessionExecutor::iterate (void)
                }
        }
 
-       DE_ASSERT(false);
        return false;
 }