#include "tcuApp.hpp"
#include "tcuResource.hpp"
#include "tcuTestLog.hpp"
+#include "tcuTestSessionExecutor.hpp"
#include "deUniquePtr.hpp"
#include <cstdio>
int main (int argc, char** argv)
{
+ int exitStatus = EXIT_SUCCESS;
+
#if (DE_OS != DE_OS_WIN32)
// Set stdout to line-buffered mode (will be fully buffered by default if stdout is pipe).
setvbuf(stdout, DE_NULL, _IOLBF, 4*1024);
for (;;)
{
if (!app->iterate())
+ {
+ if (cmdLine.getRunMode() == tcu::RUNMODE_EXECUTE &&
+ (!app->getResult().isComplete || app->getResult().numFailed))
+ {
+ exitStatus = EXIT_FAILURE;
+ }
+
break;
+ }
}
}
catch (const std::exception& e)
tcu::die("%s", e.what());
}
- return 0;
+ return exitStatus;
}