From 748b2c72a34265e57f6fb2987ab705563f17abe2 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Wed, 1 Apr 2020 13:13:47 +0200 Subject: [PATCH] io: fix COutStream test --- lib/std/io/c_out_stream.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/io/c_out_stream.zig b/lib/std/io/c_out_stream.zig index 3b5e44bf75..b8c9a51528 100644 --- a/lib/std/io/c_out_stream.zig +++ b/lib/std/io/c_out_stream.zig @@ -36,9 +36,9 @@ test "" { const out_file = std.c.fopen(filename, "w") orelse return error.UnableToOpenTestFile; defer { _ = std.c.fclose(out_file); - fs.cwd().deleteFileZ(filename) catch {}; + std.fs.cwd().deleteFileZ(filename) catch {}; } - const out_stream = &io.COutStream.init(out_file).stream; + const out_stream = &cOutStream(out_file); try out_stream.print("hi: {}\n", .{@as(i32, 123)}); }