aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/InternPool.zig1
-rw-r--r--src/Package/Fetch.zig8
-rw-r--r--src/link/MachO/dyld_info/Rebase.zig2
-rw-r--r--src/main.zig4
4 files changed, 10 insertions, 5 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig
index d0ed875d86..749be6348a 100644
--- a/src/InternPool.zig
+++ b/src/InternPool.zig
@@ -9822,6 +9822,7 @@ test "basic usage" {
const gpa = std.testing.allocator;
var ip: InternPool = .empty;
+ try ip.init(gpa, 1);
defer ip.deinit(gpa);
const i32_type = try ip.get(gpa, .main, .{ .int_type = .{
diff --git a/src/Package/Fetch.zig b/src/Package/Fetch.zig
index f64d315fdf..df0f1443c1 100644
--- a/src/Package/Fetch.zig
+++ b/src/Package/Fetch.zig
@@ -2244,7 +2244,6 @@ const TestFetchBuilder = struct {
thread_pool: ThreadPool,
http_client: std.http.Client,
global_cache_directory: Cache.Directory,
- progress: std.Progress,
job_queue: Fetch.JobQueue,
fetch: Fetch,
@@ -2260,8 +2259,6 @@ const TestFetchBuilder = struct {
self.http_client = .{ .allocator = allocator };
self.global_cache_directory = .{ .handle = cache_dir, .path = null };
- self.progress = .{ .dont_print_on_dumb = true };
-
self.job_queue = .{
.http_client = &self.http_client,
.thread_pool = &self.thread_pool,
@@ -2281,10 +2278,11 @@ const TestFetchBuilder = struct {
.lazy_status = .eager,
.parent_package_root = Cache.Path{ .root_dir = Cache.Directory{ .handle = cache_dir, .path = null } },
.parent_manifest_ast = null,
- .prog_node = self.progress.start("Fetch", 0),
+ .prog_node = std.Progress.Node.none,
.job_queue = &self.job_queue,
.omit_missing_hash_error = true,
.allow_missing_paths_field = false,
+ .use_latest_commit = true,
.package_root = undefined,
.error_bundle = undefined,
@@ -2293,6 +2291,8 @@ const TestFetchBuilder = struct {
.actual_hash = undefined,
.has_build_zig = false,
.oom_flag = false,
+ .latest_commit = null,
+
.module = null,
};
return &self.fetch;
diff --git a/src/link/MachO/dyld_info/Rebase.zig b/src/link/MachO/dyld_info/Rebase.zig
index cbd0461431..dc4fcbcc1d 100644
--- a/src/link/MachO/dyld_info/Rebase.zig
+++ b/src/link/MachO/dyld_info/Rebase.zig
@@ -281,7 +281,7 @@ test "rebase - no entries" {
defer rebase.deinit(gpa);
try rebase.finalize(gpa);
- try testing.expectEqual(@as(u64, 0), rebase.size());
+ try testing.expectEqual(0, rebase.buffer.items.len);
}
test "rebase - single entry" {
diff --git a/src/main.zig b/src/main.zig
index 1f8bd8d065..e1392428f6 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -34,6 +34,10 @@ const Zcu = @import("Zcu.zig");
const mingw = @import("mingw.zig");
const dev = @import("dev.zig");
+test {
+ _ = Package;
+}
+
pub const std_options: std.Options = .{
.wasiCwd = wasi_cwd,
.logFn = log,