mirror of
https://github.com/sbt/sbt.git
synced 2026-09-07 11:01:08 +02:00
When a forked test process crashes (e.g., due to UnsupportedClassVersionError), sbt would hang forever waiting for test results. This happened because notifyExit only completed the promise with success, regardless of the exit code. This fix checks the exit code and fails the promise if the process exited with a non-zero code, allowing sbt to properly report the failure and exit. Fixes #7429