From b84022008b38fdbd67a8d3fd523cf60927f530c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sun, 7 Sep 2014 00:34:26 +0000 Subject: [PATCH] [ROSAUTOTEST] Initialize hStdInput to the standard input handle, and hStdError to the output pipe, instead of keeping these handles NULL. See the details why this is important in the Jira report ROSTESTS-140. ROSTESTS-140 #resolve #comment Fixed. svn path=/trunk/; revision=64055 --- rostests/rosautotest/CWineTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rostests/rosautotest/CWineTest.cpp b/rostests/rosautotest/CWineTest.cpp index 119b87d7645..16aaa1a8f89 100644 --- a/rostests/rosautotest/CWineTest.cpp +++ b/rostests/rosautotest/CWineTest.cpp @@ -342,7 +342,9 @@ CWineTest::Run() m_StartupInfo.cb = sizeof(m_StartupInfo); m_StartupInfo.dwFlags = STARTF_USESTDHANDLES; + m_StartupInfo.hStdInput = GetStdHandle(STD_INPUT_HANDLE); m_StartupInfo.hStdOutput = m_hWritePipe; + m_StartupInfo.hStdError = m_hWritePipe; /* The virtual test list is of course faster, so it should be preferred over the journaled one.