Fix libuv tests

This commit is contained in:
Mitchell Hashimoto
2022-08-17 14:40:46 -07:00
parent 2f36d5f715
commit fcfd8da57a

View File

@ -1,3 +1,4 @@
const std = @import("std");
const stream = @import("stream.zig"); const stream = @import("stream.zig");
pub const Loop = @import("Loop.zig"); pub const Loop = @import("Loop.zig");
@ -16,6 +17,11 @@ pub const Embed = @import("Embed.zig");
pub usingnamespace @import("error.zig"); pub usingnamespace @import("error.zig");
test { 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"); _ = @import("tests.zig");
_ = stream; _ = stream;