|
|
|
|
|
|
|
|
RETURN_FALSE(" writeAndShrink() failure");
|
|
|
RETURN_FALSE(" writeAndShrink() failure");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(25));
|
|
|
|
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
|
|
|
|
|
|
|
|
int expectedLeftOver = output.size();
|
|
|
int expectedLeftOver = output.size();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RETURN_FALSE(" writeAndShrink() failure");
|
|
|
RETURN_FALSE(" writeAndShrink() failure");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(50));
|
|
|
|
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
|
|
|
|
|
|
|
|
if (child.read(readBuf) != nExpectedBytes) {
|
|
|
if (child.read(readBuf) != nExpectedBytes) {
|
|
|
RETURN_FALSE(" read() failure");
|
|
|
RETURN_FALSE(" read() failure");
|
|
|
|
|
|
|
|
|
RETURN_FALSE(" write() failure");
|
|
|
RETURN_FALSE(" write() failure");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(50));
|
|
|
|
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
|
|
|
|
|
|
|
|
// Check
|
|
|
// Check
|
|
|
std::vector<char> delimVec = {'E'};
|
|
|
std::vector<char> delimVec = {'E'};
|