From 4d87e8dc484753e550972e0d78908731e9597a6b Mon Sep 17 00:00:00 2001 From: Andrey Lihatskiy Date: Wed, 22 Oct 2025 04:16:20 +0300 Subject: [PATCH] Ensure final EOF in LLProcess test --- indra/llcommon/tests/llprocess_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/indra/llcommon/tests/llprocess_test.cpp b/indra/llcommon/tests/llprocess_test.cpp index 13422612d67..9eaf5bf3e3e 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); }