authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-02-13 00:02:42-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-02-13 06:42:26-07:00
log5c1f7288d93fe3071800762f2c258bc18c07d173
tree667a1d5e51e082ed2cba1cb94bdea64d7bcf3b77
parent3f8f63b132566683ffc1d3ec51e7f49346d88f2e

std.Build: delete test that doesn't test anything


1 files changed, 0 insertions(+), 20 deletions(-)

lib/std/Build.zig-20
...@@ -1596,26 +1596,6 @@ pub fn runBuild(b: *Build, build_zig: anytype) anyerror!void {...@@ -1596,26 +1596,6 @@ pub fn runBuild(b: *Build, build_zig: anytype) anyerror!void {
1596 }1596 }
1597}1597}
15981598
1599test "builder.findProgram compiles" {
1600 if (builtin.os.tag == .wasi) return error.SkipZigTest;
1601
1602 var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator);
1603 defer arena.deinit();
1604
1605 const host = try NativeTargetInfo.detect(.{});
1606
1607 const builder = try Build.create(
1608 arena.allocator(),
1609 "zig",
1610 "zig-cache",
1611 "zig-cache",
1612 "zig-cache",
1613 host,
1614 );
1615 defer builder.destroy();
1616 _ = builder.findProgram(&[_][]const u8{}, &[_][]const u8{}) catch null;
1617}
1618
1619pub const Module = struct {1599pub const Module = struct {
1620 builder: *Build,1600 builder: *Build,
1621 /// This could either be a generated file, in which case the module1601 /// This could either be a generated file, in which case the module