ProcessResult.ensureStatus

Ensure that program exited with expected exit code.

  1. auto ref ensureStatus(string msg, bool add_output, int expected)
  2. auto ref ensureStatus(string msg, int expected)
  3. auto ref ensureStatus(int expected)
    struct ProcessResult
    ref const
    ensureStatus
    (
    E : Throwable = ProcessException
    )
    (
    in int expected = 0
    )

Parameters

expected int

expected exit-code, if differ, then exception will be thrown.

Meta