summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmProcess.h
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-09-03 19:33:44 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-09-03 19:33:44 (GMT)
commitd4adde13d7d507f5896b8c7912e46bbbcb71b539 (patch)
tree45e30f838f6443a50c276be0f0507ee392020799 /Source/CTest/cmProcess.h
parentf686dbecb6c25178954b8190e95a3a265e9b2813 (diff)
downloadCMake-d4adde13d7d507f5896b8c7912e46bbbcb71b539.zip
CMake-d4adde13d7d507f5896b8c7912e46bbbcb71b539.tar.gz
CMake-d4adde13d7d507f5896b8c7912e46bbbcb71b539.tar.bz2
Allowed tests to pull more than one line of output in their quantum. Fixed uninitialized variables in the case that the test process could not start.
Diffstat (limited to 'Source/CTest/cmProcess.h')
-rw-r--r--Source/CTest/cmProcess.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/CTest/cmProcess.h b/Source/CTest/cmProcess.h
index 8b943c0..9def390 100644
--- a/Source/CTest/cmProcess.h
+++ b/Source/CTest/cmProcess.h
@@ -41,9 +41,7 @@ public:
bool StartProcess();
// return process state
- int CheckOutput(double timeout,
- std::string& stdOutLine,
- std::string& stdErrLine);
+ int CheckOutput(double timeout);
// return the process status
int GetProcessStatus();
// return true if the process is running
@@ -54,6 +52,7 @@ public:
void SetId(int id) { this->Id = id;}
int GetExitValue() { return this->ExitValue;}
double GetTotalTime() { return this->TotalTime;}
+ bool GetNextOutputLine(std::string& stdOutLine, std::string& stdErrLine);
private:
int LastOutputPipe;
double Timeout;