diff options
| author | Oz Linden <oz@lindenlab.com> | 2013-04-09 15:57:23 -0400 | 
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2013-04-09 15:57:23 -0400 | 
| commit | 8fe17529c672602845cf06cc15d4e776f0b6114a (patch) | |
| tree | c5737feebd27305a78eccbfe8c72134f0ee1342b /indra/llcommon | |
| parent | 2a220ca9eb22f953073c6396167dbd48648fe5f9 (diff) | |
fix? race condition that occasionally fails in unit test
Diffstat (limited to 'indra/llcommon')
| -rw-r--r-- | indra/llcommon/tests/llprocess_test.cpp | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/indra/llcommon/tests/llprocess_test.cpp b/indra/llcommon/tests/llprocess_test.cpp index 6f1e7d46b8..f188865eb0 100644 --- a/indra/llcommon/tests/llprocess_test.cpp +++ b/indra/llcommon/tests/llprocess_test.cpp @@ -969,10 +969,7 @@ namespace tut                        childout.getline(), "ok");          // important to get the implicit flush from std::endl          py.mPy->getWritePipe().get_ostream() << "go" << std::endl; -        for (i = 0; i < timeout && py.mPy->isRunning() && ! childout.contains("\n"); ++i) -        { -            yield(); -        } +        waitfor(*py.mPy);          ensure("script never replied", childout.contains("\n"));          ensure_equals("child didn't ack", childout.getline(), "ack");          ensure_equals("bad child termination", py.mPy->getStatus().mState, LLProcess::EXITED); | 
