diff options
author | Manlio Perillo <manlio.perillo@gmail.com> | 2023-05-13 20:36:49 +0200 |
---|---|---|
committer | Manlio Perillo <manlio.perillo@gmail.com> | 2023-05-14 17:22:03 +0200 |
commit | 0304dc3d37ba1e8443a8a1c835ad9c0988e4a3df (patch) | |
tree | 4bc69702b2e6d2dc3e5815cabe0eb5b9fb532b87 /test | |
parent | dc2539ec4e9435c9c5dec793ca1e5abcd8cd3014 (diff) |
build: show the logo in named mode
When running `zig build -Dn=n`, ensure that the logo is printed.
Update the tests.
Closes #214
Diffstat (limited to 'test')
-rw-r--r-- | test/tests.zig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/tests.zig b/test/tests.zig index 6899e9c..0bde5c1 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -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); } }; |