From fcfd8da57af26353e59efcc81170bdad75922ccb Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 17 Aug 2022 14:40:46 -0700 Subject: [PATCH] Fix libuv tests --- pkg/libuv/main.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/libuv/main.zig b/pkg/libuv/main.zig index 7e594e260..4e528b1e2 100644 --- a/pkg/libuv/main.zig +++ b/pkg/libuv/main.zig @@ -1,3 +1,4 @@ +const std = @import("std"); const stream = @import("stream.zig"); pub const Loop = @import("Loop.zig"); @@ -16,6 +17,11 @@ pub const Embed = @import("Embed.zig"); pub usingnamespace @import("error.zig"); test { + // Leak a loop... I don't know why but this fixes CI failures. Probably + // a miscompilation or something. TODO: double check this once self-hosted + // lands to see if we need this. + _ = try Loop.init(std.heap.page_allocator); + _ = @import("tests.zig"); _ = stream;