Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testing: prevent test scheduling after reactor exit
Previously, when handling "--help" (introduced in b8a13be), we returned status code 0 but continued scheduling test tasks to the Seastar reactor. This caused test applications to hang since the tasks expected the exchanger 'e' to be available after reactor exit. Fix this by using the "_done" flag to track reactor state: - Set "_done" when Seastar application exits - Skip task scheduling and exchanger wait if "_done" is set - Reuse existing "_done" member as it's safe in single-threaded context This fixes the regression where "--help" would cause test applications to hang indefinitely. Fixes #2635 Signed-off-by: Kefu Chai <[email protected]>
- Loading branch information