mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
std.Build.CompileStep: fix API usage in unit test
This commit is contained in:
parent
7d14baec90
commit
8d37c6f71c
@ -1970,7 +1970,10 @@ test "addPackage" {
|
||||
.dependencies = &[_]Pkg{pkg_dep},
|
||||
};
|
||||
|
||||
var exe = builder.addExecutable("not_an_executable", "/not/an/executable.zig");
|
||||
var exe = builder.addExecutable(.{
|
||||
.name = "not_an_executable",
|
||||
.root_source_file = .{ .path = "/not/an/executable.zig" },
|
||||
});
|
||||
exe.addPackage(pkg_top);
|
||||
|
||||
try std.testing.expectEqual(@as(usize, 1), exe.packages.items.len);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user