You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#8: Add comprehensive bailout tests for TrueAsync API
This commit introduces 15 new tests that verify the robustness of the
TrueAsync API when handling critical PHP failures (bailout scenarios).
Test categories:
- Memory exhaustion in simple and nested async operations
- Stack overflow in simple and nested async operations
- Bailout during suspend/resume operations
- Bailout during await/awaitAll operations
- Bailout with multiple concurrent coroutines
- Bailout in shutdown functions
- Bailout with onFinally handlers and exception handling
These tests ensure that:
- Memory and stack overflow are properly handled in async contexts
- Graceful shutdown mode is correctly initiated during bailout
- onFinally handlers execute properly even during critical failures
- Resource cleanup mechanisms work correctly under extreme conditions
- Exception handlers process composite exceptions from finally blocks
All tests follow the established naming pattern (001-015) and include
proper expectation handling for Fatal errors and graceful shutdown
warnings.
0 commit comments