Skip to content
Snippets Groups Projects
Commit 73144a8f authored by Brad King's avatar Brad King
Browse files

Merge branch 'fix_ctest_failure_code'

parents 0d400c37 8f8c1edc
No related branches found
No related tags found
No related merge requests found
......@@ -221,7 +221,7 @@ bool cmCTestRunTest::EndTest(size_t completed, size_t total, bool started)
{
outputTestErrorsToConsole = this->CTest->OutputTestOutputOnTestFailure;
cmCTestLog(this->CTest, HANDLER_OUTPUT, "***Exception: ");
switch ( retVal )
switch(this->TestProcess->GetExitException())
{
case cmsysProcess_Exception_Fault:
cmCTestLog(this->CTest, HANDLER_OUTPUT, "SegFault");
......
......@@ -264,3 +264,9 @@ int cmProcess::ReportStatus()
return result;
}
int cmProcess::GetExitException()
{
return cmsysProcess_GetExitException(this->Process);
}
......@@ -43,7 +43,7 @@ public:
void SetId(int id) { this->Id = id;}
int GetExitValue() { return this->ExitValue;}
double GetTotalTime() { return this->TotalTime;}
int GetExitException();
/**
* Read one line of output but block for no more than timeout.
* Returns:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment