Skip to content

Commit 786052c

Browse files
committed
disable running cross compiled macos tests
due to #3295
1 parent 9627a75 commit 786052c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/tests.zig

+11
Original file line numberDiff line numberDiff line change
@@ -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

3334
const 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;

0 commit comments

Comments
 (0)