summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-13 22:17:11 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-13 22:17:11 (GMT)
commitcbeeaa71880c565226efeab605e0492eb1806e66 (patch)
tree03cb966235bc2e2380ccf4361e28b76f2e40b4ff /Source/cmCTest.h
parentbeda09a96b2139a5e22f7f78c4cdff7783669d99 (diff)
downloadCMake-cbeeaa71880c565226efeab605e0492eb1806e66.zip
CMake-cbeeaa71880c565226efeab605e0492eb1806e66.tar.gz
CMake-cbeeaa71880c565226efeab605e0492eb1806e66.tar.bz2
ENH: Better error reporting
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r--Source/cmCTest.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h
index fe26f5b..78f5e5e 100644
--- a/Source/cmCTest.h
+++ b/Source/cmCTest.h
@@ -141,6 +141,18 @@ private:
LAST_TEST = 10
};
+ enum { // Program statuses
+ NOT_RUN = 0,
+ TIMEOUT,
+ SEGFAULT,
+ ILLEGAL,
+ INTERRUPT,
+ NUMERICAL,
+ OTHER_FAULT,
+ BAD_COMMAND,
+ COMPLETED
+ };
+
struct cmCTestTestResult
{
std::string m_Name;
@@ -148,6 +160,7 @@ private:
std::string m_FullCommandLine;
double m_ExecutionTime;
int m_ReturnValue;
+ int m_Status;
std::string m_CompletionStatus;
std::string m_Output;
std::string m_RegressionImages;
@@ -227,8 +240,10 @@ private:
bool RunMakeCommand(const char* command, std::string* output,
int* retVal, const char* dir, bool verbose, int timeout, std::ofstream& ofs);
+ int RunTest( const char* command, std::string* output, int *retVal);
std::string GenerateRegressionImages(const std::string& xml);
+ const char* GetTestStatus(int status);
};
#endif