1
0
Fork 0
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:
Robin Appelman 2025-03-13 19:50:12 +01:00
commit c734dede0e
2 changed files with 12 additions and 4 deletions

View file

@ -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()
}
}