From 0cbf00a3ec3f6640556e39efaa6e936b0b42630b Mon Sep 17 00:00:00 2001 From: Vexu <15308111+Vexu@users.noreply.github.com> Date: Sun, 24 Nov 2019 09:13:01 +0200 Subject: self hosted compiler: final small fixes to get it compiling --- src-self-hosted/test.zig | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src-self-hosted/test.zig') diff --git a/src-self-hosted/test.zig b/src-self-hosted/test.zig index 940a8c53b3..85b9d6b912 100644 --- a/src-self-hosted/test.zig +++ b/src-self-hosted/test.zig @@ -13,12 +13,16 @@ test "stage2" { // TODO provide a way to run tests in evented I/O mode if (!std.io.is_async) return error.SkipZigTest; + // TODO https://github.com/ziglang/zig/issues/1364 + // TODO https://github.com/ziglang/zig/issues/3117 + if (true) return error.SkipZigTest; + try ctx.init(); defer ctx.deinit(); try @import("stage2_tests").addCases(&ctx); - _ = async ctx.run(); + try ctx.run(); } const file1 = "1.zig"; @@ -61,8 +65,8 @@ pub const TestContext = struct { self.zig_compiler.deinit(); } - fn run(self: *TestContext) void { - std.event.Loop.instance.?.startCpuBoundOperation(); + fn run(self: *TestContext) !void { + std.event.Loop.startCpuBoundOperation(); self.any_err = self.group.wait(); return self.any_err; } -- cgit v1.2.3