exitProcess

val exitProcess: (status: Int) -> Unit

The function to call to exit the process with a status code.

You can set this in tests to avoid actually exiting the process.