Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions framework/common/tcuCommandLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ DE_DECLARE_COMMAND_LINE_OPT(ComputeOnly, bool);
DE_DECLARE_COMMAND_LINE_OPT(VideoLogPrint, bool);
DE_DECLARE_COMMAND_LINE_OPT(VideoDecodeOutputDump, VideoDecodeOutput);
DE_DECLARE_COMMAND_LINE_OPT(VideoEncodeOutputDump, VideoEncodeOutput);
DE_DECLARE_COMMAND_LINE_OPT(NoProgramFail, bool);

static void parseIntList(const char *src, std::vector<int> *dst)
{
Expand Down Expand Up @@ -219,6 +220,7 @@ void registerOptions(de::cmdline::Parser &parser)
<< Option<RunMode>(nullptr, "deqp-runmode",
"Execute tests, write list of test cases into a file, or verify amber capability coherency",
s_runModes, "execute")
<< Option<NoProgramFail>(nullptr, "deqp-no-program-fail", "Prevents the program to return -1 on test failure", s_enableNames, "disable")
<< Option<ExportFilenamePattern>(nullptr, "deqp-caselist-export-file",
"Set the target file name pattern for caselist export",
"${packageName}-cases.${typeExtension}")
Expand Down Expand Up @@ -1187,6 +1189,10 @@ bool CommandLine::quietMode(void) const
{
return m_cmdLine.getOption<opt::QuietStdout>();
}
bool CommandLine::isNoProgramFailEnabled(void) const
{
return m_cmdLine.getOption<opt::NoProgramFail>();
}
const char *CommandLine::getLogFileName(void) const
{
return m_cmdLine.getOption<opt::LogFilename>().c_str();
Expand Down
3 changes: 3 additions & 0 deletions framework/common/tcuCommandLine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ class CommandLine
//! Is quiet mode active?
bool quietMode(void) const;

//! Is no program fail mode active?
bool isNoProgramFailEnabled(void) const;

//! Get log file name (--deqp-log-filename)
const char *getLogFileName(void) const;

Expand Down
2 changes: 1 addition & 1 deletion framework/platform/tcuMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ int main(int argc, char **argv)
if (!app->iterate())
{
if (cmdLine.getRunMode() == tcu::RUNMODE_EXECUTE &&
(!app->getResult().isComplete || app->getResult().numFailed))
(!app->getResult().isComplete || app->getResult().numFailed) && !cmdLine.isNoProgramFailEnabled())
{
exitStatus = EXIT_FAILURE;
}
Expand Down