diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-08-12 03:51:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-12 03:51:09 -0400 |
| commit | fa50e179f7f8d523ff00be4cac90bf7659394140 (patch) | |
| tree | bf67fc0f5bbe30bbfd8ba84a48594ae587ef1b90 /test | |
| parent | 645c396d02b7570d10d4d6b80653e7f9db42234e (diff) | |
| parent | 5e42b0821a5aa6af2327b4380fd796be274cb024 (diff) | |
| download | zig-fa50e179f7f8d523ff00be4cac90bf7659394140.tar.gz zig-fa50e179f7f8d523ff00be4cac90bf7659394140.zip | |
Merge pull request #12381 from hdorio/12380-fix-reporting-success
ci: windows: stop when exe exits with an error
Diffstat (limited to 'test')
| -rw-r--r-- | test/link.zig | 5 | ||||
| -rw-r--r-- | test/stack_traces.zig | 5 | ||||
| -rw-r--r-- | test/standalone.zig | 5 | ||||
| -rw-r--r-- | test/tests.zig | 7 |
4 files changed, 21 insertions, 1 deletions
diff --git a/test/link.zig b/test/link.zig index 1e75620919..01edd07261 100644 --- a/test/link.zig +++ b/test/link.zig @@ -3,6 +3,11 @@ const builtin = @import("builtin"); const tests = @import("tests.zig"); pub fn addCases(cases: *tests.StandaloneContext) void { + if (builtin.os.tag == .windows) { + // https://github.com/ziglang/zig/issues/12421 + return; + } + cases.addBuildFile("test/link/bss/build.zig", .{ .build_modes = false, // we only guarantee zerofill for undefined in Debug }); diff --git a/test/stack_traces.zig b/test/stack_traces.zig index ea27b5beff..e514e0fd88 100644 --- a/test/stack_traces.zig +++ b/test/stack_traces.zig @@ -3,6 +3,11 @@ const os = std.os; const tests = @import("tests.zig"); pub fn addCases(cases: *tests.StackTracesContext) void { + if (@import("builtin").os.tag == .windows) { + // https://github.com/ziglang/zig/issues/12422 + return; + } + cases.addCase(.{ .name = "return", .source = diff --git a/test/standalone.zig b/test/standalone.zig index 2b0667e89c..2a7902dfb2 100644 --- a/test/standalone.zig +++ b/test/standalone.zig @@ -34,7 +34,10 @@ pub fn addCases(cases: *tests.StandaloneContext) void { if (builtin.zig_backend == .stage1) { // https://github.com/ziglang/zig/issues/12194 cases.addBuildFile("test/standalone/issue_9812/build.zig", .{}); } - cases.addBuildFile("test/standalone/issue_11595/build.zig", .{}); + if (builtin.os.tag != .windows) { + // https://github.com/ziglang/zig/issues/12419 + cases.addBuildFile("test/standalone/issue_11595/build.zig", .{}); + } if (builtin.os.tag != .wasi) { cases.addBuildFile("test/standalone/load_dynamic_library/build.zig", .{}); } diff --git a/test/tests.zig b/test/tests.zig index dcc891f878..0bca9a9d16 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -641,6 +641,13 @@ pub fn addPkgTests( } else false; if (!want_this_mode) continue; + if (test_target.backend) |backend| { + if (backend == .stage2_c and builtin.os.tag == .windows) { + // https://github.com/ziglang/zig/issues/12415 + continue; + } + } + const libc_prefix = if (test_target.target.getOs().requiresLibC()) "" else if (test_target.link_libc) |
