If there are any failed tests, or the test run was not
compelte, the process will now generate EXIT_FAILURE (1)
instead of EXIT_SUCCESS (0).
Affects:
cts-runner
Components: Framework
VK-GL-CTS issue: 1982
Change-Id: I50fb7d51c095a09f53476b5ba56b72835337f339
~TestRunner(void);
bool iterate(void);
+ bool isConformant() const { return m_summary.isConformant; }
private:
TestRunner(const TestRunner& other);
int main(int argc, char** argv)
{
CommandLine cmdLine;
+ int exitStatus = EXIT_SUCCESS;
if (!parseCommandLine(cmdLine, argc, argv))
{
for (;;)
{
if (!runner.iterate())
+ {
+ if (!runner.isConformant())
+ {
+ exitStatus = EXIT_FAILURE;
+ }
+
break;
+ }
}
}
catch (const std::exception& e)
return -1;
}
- return 0;
+ return exitStatus;
}