mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-10-19 04:45:36 +00:00
Fixed error in captureStdErr()
This commit is contained in:
parent
62ad50b71e
commit
4346d5f1d8
|
@ -86,6 +86,7 @@ that if you update one, you may need to also update the other.
|
||||||
|
|
||||||
### Version Changes
|
### Version Changes
|
||||||
|
|
||||||
|
* *2025-09-24* zig 0.16.0-dev.377 - Enable passing file content as args, see [#25228](https://github.com/ziglang/zig/pull/25228)
|
||||||
* *2025-09-03* zig 0.16.0-dev.164 - changes in reader, see [#25077](https://github.com/ziglang/zig/pull/25077)
|
* *2025-09-03* zig 0.16.0-dev.164 - changes in reader, see [#25077](https://github.com/ziglang/zig/pull/25077)
|
||||||
* *2025-08-15* zig 0.15.0-dev.1519 - changes in array list, see [#24801](https://github.com/ziglang/zig/pull/24801)
|
* *2025-08-15* zig 0.15.0-dev.1519 - changes in array list, see [#24801](https://github.com/ziglang/zig/pull/24801)
|
||||||
* *2025-08-08* zig 0.15.0-dev.1380 - changes in build system, see [#24588](https://github.com/ziglang/zig/pull/24588)
|
* *2025-08-08* zig 0.15.0-dev.1380 - changes in build system, see [#24588](https://github.com/ziglang/zig/pull/24588)
|
||||||
|
|
|
@ -15,7 +15,7 @@ const print = std.debug.print;
|
||||||
// 1) Getting Started
|
// 1) Getting Started
|
||||||
// 2) Version Changes
|
// 2) Version Changes
|
||||||
comptime {
|
comptime {
|
||||||
const required_zig = "0.16.0-dev.164";
|
const required_zig = "0.16.0-dev.377";
|
||||||
const current_zig = builtin.zig_version;
|
const current_zig = builtin.zig_version;
|
||||||
const min_zig = std.SemanticVersion.parse(required_zig) catch unreachable;
|
const min_zig = std.SemanticVersion.parse(required_zig) catch unreachable;
|
||||||
if (current_zig.order(min_zig) == .lt) {
|
if (current_zig.order(min_zig) == .lt) {
|
||||||
|
|
|
@ -43,7 +43,7 @@ pub fn addCliTests(b: *std.Build, exercises: []const Exercise) *Step {
|
||||||
cmd.expectExitCode(0);
|
cmd.expectExitCode(0);
|
||||||
cmd.step.dependOn(&heal_step.step);
|
cmd.step.dependOn(&heal_step.step);
|
||||||
|
|
||||||
const stderr = cmd.captureStdErr();
|
const stderr = cmd.captureStdErr(.{});
|
||||||
const verify = CheckNamedStep.create(b, ex, stderr);
|
const verify = CheckNamedStep.create(b, ex, stderr);
|
||||||
verify.step.dependOn(&cmd.step);
|
verify.step.dependOn(&cmd.step);
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ pub fn addCliTests(b: *std.Build, exercises: []const Exercise) *Step {
|
||||||
cmd.expectExitCode(0);
|
cmd.expectExitCode(0);
|
||||||
cmd.step.dependOn(&heal_step.step);
|
cmd.step.dependOn(&heal_step.step);
|
||||||
|
|
||||||
const stderr = cmd.captureStdErr();
|
const stderr = cmd.captureStdErr(.{});
|
||||||
const verify = CheckStep.create(b, exercises, stderr);
|
const verify = CheckStep.create(b, exercises, stderr);
|
||||||
verify.step.dependOn(&cmd.step);
|
verify.step.dependOn(&cmd.step);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user