diff options
| author | Marcio Giaxa <i@mgxm.me> | 2018-12-24 11:19:09 -0200 |
|---|---|---|
| committer | Marcio Giaxa <i@mgxm.me> | 2018-12-24 11:45:55 -0200 |
| commit | 52be7d7404acf2eff53d5c0cfd3ddeb591a5e27c (patch) | |
| tree | 312534f55ce13dc88001a0d549541076088bcd36 /std/debug/failing_allocator.zig | |
| parent | de473d442371c943bff077428b3786885cadec47 (diff) | |
| download | zig-52be7d7404acf2eff53d5c0cfd3ddeb591a5e27c.tar.gz zig-52be7d7404acf2eff53d5c0cfd3ddeb591a5e27c.zip | |
freebsd: fix flags for opening files
Prior to this fix, the compare-outputs test suite was showing a strange
behavior, the tests always stopped between tests 6-8 and had a stack track
similar to each other.
```
Test 8/68 compare-output multiple files with private function (ReleaseSmall)...OK
/usr/home/mgxm/dev/zig/zig-cache/source.zig:7:2: error: invalid token: '&'
}&(getStdOut() catch unreachable).outStream().stream;
^
The following command exited with error code 1:
```
With the wrong O_* flags, the source code was being written in append mode which
resulted in an invalid file
```zig
use @import("foo.zig");
use @import("bar.zig");
pub fn main() void {
foo_function();
bar_function();
}&(getStdOut() catch unreachable).outStream().stream;
stdout.print("OK 2\n") catch unreachable;
}
fn privateFunction() void {
printText();
}
```
Diffstat (limited to 'std/debug/failing_allocator.zig')
0 files changed, 0 insertions, 0 deletions
