Browse Source

Corrected isDone test.


git-svn-id: https://svn.microneil.com/svn/CodeDweller-Tests/trunk@28 b3372362-9eaa-4a85-aa2b-6faa1ab7c995
master
adeniz 10 years ago
parent
commit
d9bb8b5477
1 changed files with 10 additions and 1 deletions
  1. 10
    1
      TestChild/testChild.cpp

+ 10
- 1
TestChild/testChild.cpp View File

@@ -375,8 +375,17 @@ testReader() {
<< std::endl;
return false;
}
// Sleep to let the child exit.
std::this_thread::sleep_for(std::chrono::milliseconds(100));
if (!child.isDone()) {
std::cout << "first isDone() failure in testReader." << std::endl;
return false;
}
if (!child.isDone()) {
std::cout << "isDone() failure in testReader." << std::endl;
std::cout << "second isDone() failure in testReader." << std::endl;
return false;
}

Loading…
Cancel
Save