For the XP bug, also demonstrate that the write end of the pipe works.

This commit is contained in:
Ryan Prichard 2015-10-24 04:21:09 -05:00
parent 5917ff60a7
commit 1c88b71ec0

View File

@ -510,6 +510,11 @@ static void Test_CreateProcess_SpecialInherit() {
Handle::invent(nullptr, p).setStdin().setStdout().setStderr();
auto c4 = p.child({ true, 0, { rh, rh, rh }});
check(c4, rh, false);
// Also test the write end of the pipe.
auto wh = std::get<1>(pipe).setStdin().setStdout().setStderr();
auto c5 = p.child({ false });
check(c5, wh, false);
}
}