/claim #9909
This PR implements a comprehensive test suite for ZIOApp behavior as requested in issue #9909.
While implementing the test for issue #9240 (custom exit codes), I discovered and fixed a bug in ZIOAppPlatformSpecific.scala. The exitWith method was not properly propagating custom ExitCode instances, always defaulting to ExitCode.success. This has been corrected to handle Exit.Success cases with custom exit codes.
Fixed TestClockSpecJVM flaky test by adding ZIO.yieldNow after TestClock.adjust. The scheduled executor test was racy because adjust advances virtual time but doesn’t wait for async Runnables to complete.
All tests pass locally:
Mike Kuykendall
@Michael-A-Kuykendall
ZIO
@ZIO