When running a Windows binary under ctest, the stdout and stderr handles configured in the STARTUPINFO parameter are not readable.
Both stdout
and stderr
seem to get redirected to the terminal. The handles passed in to CreateProcessAsUserW()
via the STARTUPINFO
parameter don't receive what is being emitted to the console buffer. I tried disabling all output with -Q
, but that doesn't appear to fix the issue.
If I run the cxxtest binary from cmd.exe or PowerShell without invoking it from ctest
, the stdout
and stderr
handles passed in to CreateProcessAsUserW()
are readable. At some point around version 3.2, this stopped working. Previously, ctest
behaved the same as the console.
Edited by hoyhoy