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)
    struct ProcessResult
    ref const
    ensureStatus
    (
    E : Throwable = ProcessException
    )
    (
    in string msg
    ,
    in int expected = 0
    )
  3. auto ref ensureStatus(int expected)

Parameters

msg string

message to throw in exception in case of check failure

expected int

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

Meta