shithub: mc

Download patch

ref: 6109f4b305d077fa88ab65fbdc728527ef4478d9
parent: 0944989ceaf443ca4dea50b7c368e21e0c71e80a
author: Ori Bernstein <ori@foo.hsd1.ca.comcast.net>
date: Tue Sep 13 20:05:02 EDT 2016

Make sure that our output file exists.

--- a/lib/bio/test/bio-write.myr
+++ b/lib/bio/test/bio-write.myr
@@ -7,6 +7,7 @@
 	/* Must be bigger than a bio buffer (ie, > 64k) */
 	var buf : byte[64*1024]
 
+	std.mkpath("tmpout")
 	match bio.create("tmpout/test-write", bio.Wr, 0o644)
 	| `std.Ok bio:	f = bio
 	| `std.Err m:	std.fatal("Unable to open data file: {}", m)