diff options
author | Ori Bernstein <ori@foo.hsd1.ca.comcast.net> | 2016-09-14 00:05:02 -0700 |
---|---|---|
committer | Ori Bernstein <ori@foo.hsd1.ca.comcast.net> | 2016-09-14 00:05:02 -0700 |
commit | 6109f4b305d077fa88ab65fbdc728527ef4478d9 (patch) | |
tree | 7cce8e0419f83f73133581e028658a435cb418c5 /lib/bio | |
parent | 0944989ceaf443ca4dea50b7c368e21e0c71e80a (diff) | |
download | mc-6109f4b305d077fa88ab65fbdc728527ef4478d9.tar.gz |
Make sure that our output file exists.
Diffstat (limited to 'lib/bio')
-rw-r--r-- | lib/bio/test/bio-write.myr | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bio/test/bio-write.myr b/lib/bio/test/bio-write.myr index 3b682c5..18b5a77 100644 --- a/lib/bio/test/bio-write.myr +++ b/lib/bio/test/bio-write.myr @@ -7,6 +7,7 @@ const main = { /* 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) |