disable running cross compiled macos tests

due to #3295
This commit is contained in:
Andrew Kelley 2019-09-22 14:40:54 -04:00
parent 9627a75b07
commit 786052c7d3

View File

@ -28,6 +28,7 @@ const TestTarget = struct {
mode: builtin.Mode = .Debug,
link_libc: bool = false,
single_threaded: bool = false,
disable_native: bool = false,
};
const test_targets = [_]TestTarget{
@ -175,6 +176,8 @@ const test_targets = [_]TestTarget{
.abi = .gnu,
},
},
// TODO https://github.com/ziglang/zig/issues/3295
.disable_native = true,
},
TestTarget{
@ -365,6 +368,14 @@ pub fn addPkgTests(
if (skip_single_threaded and test_target.single_threaded)
continue;
const ArchTag = @TagType(builtin.Arch);
if (test_target.disable_native and
test_target.target.getOs() == builtin.os and
ArchTag(test_target.target.getArch()) == ArchTag(builtin.arch))
{
continue;
}
const want_this_mode = for (modes) |m| {
if (m == test_target.mode) break true;
} else false;