commit 5a3ae38f3b79a69cb6f4ad28934a51165cae2ef1 (tree)
parent 8944935499ee6cdbce6e0384efb32e75753adcbd
Author: Andrew Kelley <andrew@ziglang.org>
Date: Thu, 1 Feb 2024 18:05:14 -0700
std: remove garbage being printed to stderr during unit tests
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/lib/std/fs/test.zig b/lib/std/fs/test.zig
@@ -113,10 +113,7 @@ fn testWithAllSupportedPathTypes(test_func: anytype) !void {
var ctx = TestContext.init(path_type, testing.allocator, path_type.getTransformFn());
defer ctx.deinit();
- test_func(&ctx) catch |err| {
- std.debug.print("{s}, path type: {s}\n", .{ @errorName(err), enum_field.name });
- return err;
- };
+ try test_func(&ctx);
}
}