mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
proper exit code for test
This commit is contained in:
parent
2bc9e571d2
commit
c734dede0e
2 changed files with 12 additions and 4 deletions
|
|
@ -234,3 +234,10 @@ impl From<i64> for ExitCode {
|
|||
ExitCode(code)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<ExitCode> for std::process::ExitCode {
|
||||
fn from(value: ExitCode) -> Self {
|
||||
let code = u8::try_from(value.0).unwrap_or(1);
|
||||
code.into()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue