diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-09-22 14:40:54 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-09-22 14:40:54 -0400 |
| commit | 786052c7d33973bf0bb34483301142b07bd48880 (patch) | |
| tree | 93e9259ddaa85c2f33c9c8db5fd7684a44b8ed10 /test | |
| parent | 9627a75b071787d49c10c45bd2d8e83423b988fe (diff) | |
| download | zig-786052c7d33973bf0bb34483301142b07bd48880.tar.gz zig-786052c7d33973bf0bb34483301142b07bd48880.zip | |
disable running cross compiled macos tests
due to #3295
Diffstat (limited to 'test')
| -rw-r--r-- | test/tests.zig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/tests.zig b/test/tests.zig index 327dd0c070..63fadc6f7d 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -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; |
