summaryrefslogtreecommitdiffstats
path: root/source/core/slang-process-util.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2021-11-30 16:50:05 -0500
committerGitHub <noreply@github.com>2021-11-30 16:50:05 -0500
commitce12e1d64d6b0b62609f061d3773a7e8b35849c3 (patch)
tree72da79208edff4fdebfc32db759ecca21716c260 /source/core/slang-process-util.cpp
parentace4e334bc5fb299d2890b5e3f35dfd84ea32606 (diff)
Auto flush for streams for stdin/out in slang-test (#2035)
* #include an absolute path didn't work - because paths were taken to always be relative. * Move StreamType from Process to StdStreamType in slang-stream.h * Disable buffering for stdout/stderr for slang-test. * Improve comment.
Diffstat (limited to 'source/core/slang-process-util.cpp')
-rw-r--r--source/core/slang-process-util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/slang-process-util.cpp b/source/core/slang-process-util.cpp
index b1466d150..1a160b00b 100644
--- a/source/core/slang-process-util.cpp
+++ b/source/core/slang-process-util.cpp
@@ -49,8 +49,8 @@ static String _getText(const ConstArrayView<Byte>& bytes)
/* static */SlangResult ProcessUtil::readUntilTermination(Process* process, List<Byte>* outStdOut, List<Byte>* outStdError)
{
- Stream* stdOutStream = process->getStream(Process::StreamType::StdOut);
- Stream* stdErrorStream = process->getStream(Process::StreamType::ErrorOut);
+ Stream* stdOutStream = process->getStream(StdStreamType::Out);
+ Stream* stdErrorStream = process->getStream(StdStreamType::ErrorOut);
while (!process->isTerminated())
{