mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
build: show the logo in named mode
When running `zig build -Dn=n`, ensure that the logo is printed. Update the tests. Closes #214
This commit is contained in:
@@ -151,6 +151,16 @@ const CheckNamedStep = struct {
|
||||
defer stderr_file.close();
|
||||
|
||||
const stderr = stderr_file.reader();
|
||||
{
|
||||
// Skip the logo.
|
||||
const nlines = mem.count(u8, root.logo, "\n");
|
||||
var buf: [80]u8 = undefined;
|
||||
|
||||
var lineno: usize = 0;
|
||||
while (lineno < nlines) : (lineno += 1) {
|
||||
_ = try readLine(stderr, &buf);
|
||||
}
|
||||
}
|
||||
try check_output(step, ex, stderr);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user