summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmProcess.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-01-16 18:59:55 (GMT)
committerBrad King <brad.king@kitware.com>2018-01-17 15:41:51 (GMT)
commitc10119df62cf212f9274c6a5c0af609bae4f1b03 (patch)
treee79d94e43eb7a87ee4eb8da54d91f93ffcc540b9 /Source/CTest/cmProcess.h
parentb4dfe1d8163055f9f40a4c18f5eccccb28f06559 (diff)
downloadCMake-c10119df62cf212f9274c6a5c0af609bae4f1b03.zip
CMake-c10119df62cf212f9274c6a5c0af609bae4f1b03.tar.gz
CMake-c10119df62cf212f9274c6a5c0af609bae4f1b03.tar.bz2
CTest: Fix decoding of MBCS character split by buffering
Use a single `cmProcessOutput` instance persistently to decode all output of a test process so that partial character bytes can be buffered.
Diffstat (limited to 'Source/CTest/cmProcess.h')
-rw-r--r--Source/CTest/cmProcess.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/CTest/cmProcess.h b/Source/CTest/cmProcess.h
index 9250896..633be24 100644
--- a/Source/CTest/cmProcess.h
+++ b/Source/CTest/cmProcess.h
@@ -5,13 +5,14 @@
#include "cmConfigure.h" // IWYU pragma: keep
+#include "cmProcessOutput.h"
#include "cmUVHandlePtr.h"
#include "cm_uv.h"
#include <chrono>
#include <stddef.h>
+#include <stdint.h>
#include <string>
-#include <sys/types.h>
#include <vector>
class cmCTestRunTest;
@@ -80,6 +81,7 @@ private:
std::vector<char> Buf;
cmCTestRunTest& Runner;
+ cmProcessOutput Conv;
int Signal = 0;
cmProcess::State ProcessState = cmProcess::State::Starting;