update test case for init-exe with respect to new template

Now it uses std.log.info instead of std.debug.print
This commit is contained in:
Andrew Kelley 2020-09-25 18:21:21 -07:00
parent 70d7d7e919
commit 21b407b17f

View File

@ -98,7 +98,7 @@ fn testZigInitLib(zig_exe: []const u8, dir_path: []const u8) !void {
fn testZigInitExe(zig_exe: []const u8, dir_path: []const u8) !void {
_ = try exec(dir_path, &[_][]const u8{ zig_exe, "init-exe" });
const run_result = try exec(dir_path, &[_][]const u8{ zig_exe, "build", "run" });
testing.expect(std.mem.eql(u8, run_result.stderr, "All your codebase are belong to us.\n"));
testing.expect(std.mem.eql(u8, run_result.stderr, "info: All your codebase are belong to us.\n"));
}
fn testGodboltApi(zig_exe: []const u8, dir_path: []const u8) anyerror!void {