io: fix COutStream test

This commit is contained in:
Vincent Rischmann 2020-04-01 13:13:47 +02:00
parent f46121b8fc
commit 748b2c72a3
No known key found for this signature in database
GPG Key ID: 048874EE14E7E6B9

View File

@ -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)});
}