summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmProcess.h
diff options
context:
space:
mode:
authorBryon Bean <bryon.bean@kitware.com>2017-10-23 12:16:45 (GMT)
committerBrad King <brad.king@kitware.com>2018-01-10 15:19:14 (GMT)
commitfcebff75f912f50bdc7fd30f4185141255ba4b1f (patch)
tree7d5fd4b5c40c4d9bf25e27172443f43332d84b39 /Source/CTest/cmProcess.h
parent3dd2edf4ab94f5044b73b20151592c8e94a5160a (diff)
downloadCMake-fcebff75f912f50bdc7fd30f4185141255ba4b1f.zip
CMake-fcebff75f912f50bdc7fd30f4185141255ba4b1f.tar.gz
CMake-fcebff75f912f50bdc7fd30f4185141255ba4b1f.tar.bz2
cmProcess: Use explicit enum for process exit exception
Translate the values from KWSys Process.
Diffstat (limited to 'Source/CTest/cmProcess.h')
-rw-r--r--Source/CTest/cmProcess.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/CTest/cmProcess.h b/Source/CTest/cmProcess.h
index 79379aa..297cc47 100644
--- a/Source/CTest/cmProcess.h
+++ b/Source/CTest/cmProcess.h
@@ -47,8 +47,20 @@ public:
void SetId(int id) { this->Id = id; }
int GetExitValue() { return this->ExitValue; }
std::chrono::duration<double> GetTotalTime() { return this->TotalTime; }
- int GetExitException();
+
+ enum class Exception
+ {
+ None,
+ Fault,
+ Illegal,
+ Interrupt,
+ Numerical,
+ Other
+ };
+
+ Exception GetExitException();
std::string GetExitExceptionString();
+
/**
* Read one line of output but block for no more than timeout.
* Returns: