diff options
| author | Andrey Lihatskiy <118752495+marchcat@users.noreply.github.com> | 2025-10-22 15:09:34 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-22 08:09:34 -0400 |
| commit | b4090c24d25c202eb68be8bcd129d524d155e739 (patch) | |
| tree | be4044abc62c62aad1531cc2aadcf7a8af09656f /indra/llcommon/tests/llprocess_test.cpp | |
| parent | 0d5138c1f93a77ff52551a76d0d8575413550859 (diff) | |
Ensure final EOF in LLProcess test (#4877)
Diffstat (limited to 'indra/llcommon/tests/llprocess_test.cpp')
| -rw-r--r-- | indra/llcommon/tests/llprocess_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llcommon/tests/llprocess_test.cpp b/indra/llcommon/tests/llprocess_test.cpp index 13422612d6..9eaf5bf3e3 100644 --- a/indra/llcommon/tests/llprocess_test.cpp +++ b/indra/llcommon/tests/llprocess_test.cpp @@ -126,6 +126,8 @@ void waitfor(LLProcess& proc, int timeout=60) { yield(); } + // Pump once more after the process exits to flush any final events such as EOF. + yield(0); std::string msg = "process took longer than " + std::to_string(timeout) + " seconds to terminate"; tut::ensure(msg, i < timeout); } @@ -137,6 +139,8 @@ void waitfor(LLProcess::handle h, const std::string& desc, int timeout=60) { yield(); } + // Pump once more after the process exits to flush any final events such as EOF. + yield(0); std::string msg = "process took longer than " + std::to_string(timeout) + " seconds to terminate"; tut::ensure(msg, i < timeout); } |
