Commit 748b2c72a3

Vincent Rischmann <vincent@rischmann.fr>
2020-04-01 13:13:47
io: fix COutStream test
1 parent f46121b
Changed files (1)
lib
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)});
 }