Skip to main content

check_platform_exit_codes

Function check_platform_exit_codes 

Source
pub fn check_platform_exit_codes(codes: &[i32], unix: bool) -> Result<Vec<i32>>
Expand description

Check a subject’s resolved ok_exit_codes against a platform: fail when none of them is possible there, otherwise return the ones that are not, for a warning.

Not part of loading tak.toml. A shared file may hold a Windows-only subject, switched off elsewhere by when, whose codes are all impossible on Unix; checking it at load would stop every other benchmark from running there. tak run calls this only for the subjects it will measure.