authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-09-22 14:40:54-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-09-22 14:40:54-04:00
log786052c7d33973bf0bb34483301142b07bd48880
tree93e9259ddaa85c2f33c9c8db5fd7684a44b8ed10
parent9627a75b071787d49c10c45bd2d8e83423b988fe

disable running cross compiled macos tests

due to #3295

1 files changed, 11 insertions(+), 0 deletions(-)

test/tests.zig+11
......@@ -28,6 +28,7 @@ const TestTarget = struct {
2828 mode: builtin.Mode = .Debug,
2929 link_libc: bool = false,
3030 single_threaded: bool = false,
31 disable_native: bool = false,
3132};
3233
3334const test_targets = [_]TestTarget{
......@@ -175,6 +176,8 @@ const test_targets = [_]TestTarget{
175176 .abi = .gnu,
176177 },
177178 },
179 // TODO https://github.com/ziglang/zig/issues/3295
180 .disable_native = true,
178181 },
179182
180183 TestTarget{
......@@ -365,6 +368,14 @@ pub fn addPkgTests(
365368 if (skip_single_threaded and test_target.single_threaded)
366369 continue;
367370
371 const ArchTag = @TagType(builtin.Arch);
372 if (test_target.disable_native and
373 test_target.target.getOs() == builtin.os and
374 ArchTag(test_target.target.getArch()) == ArchTag(builtin.arch))
375 {
376 continue;
377 }
378
368379 const want_this_mode = for (modes) |m| {
369380 if (m == test_target.mode) break true;
370381 } else false;