MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / OutputRedirect

Method OutputRedirect

tests/catch.hpp:14115–14124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14113}
14114
14115OutputRedirect::OutputRedirect(std::string &stdout_dest,
14116 std::string &stderr_dest)
14117 : m_originalStdout(dup(1)),
14118 m_originalStderr(dup(2)),
14119 m_stdoutDest(stdout_dest),
14120 m_stderrDest(stderr_dest)
14121{
14122 dup2(fileno(m_stdoutFile.getFile()), 1);
14123 dup2(fileno(m_stderrFile.getFile()), 2);
14124}
14125
14126OutputRedirect::~OutputRedirect()
14127{

Callers

nothing calls this directly

Calls 1

getFileMethod · 0.80

Tested by

no test coverage detected