Commit 5a3ae38f3b

Andrew Kelley <andrew@ziglang.org>
2024-02-02 02:05:14
std: remove garbage being printed to stderr during unit tests
1 parent 8944935
Changed files (1)
lib
std
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);
     }
 }