wire env variables through test runner to TESTCONFIG

This commit is contained in:
Pat Hickey
2021-01-28 11:34:18 -08:00
parent bbbe168ca1
commit e758318fee
3 changed files with 19 additions and 7 deletions

View File

@@ -80,9 +80,9 @@ macro_rules! assert_errno {
assert_errno!(e, $($rest),+, $i);
}
};
($s:expr, linux => $i:expr, $( $rest:expr ),+) => {
($s:expr, unix => $i:expr, $( $rest:expr ),+) => {
let e = $s;
if $crate::TESTCONFIG.errno_expect_linux() {
if $crate::TESTCONFIG.errno_expect_unix() {
assert_errno!(e, $i);
} else {
assert_errno!(e, $($rest),+, $i);