diff options
| author | Sébastien Marie <semarie@online.fr> | 2020-11-11 07:08:20 +0000 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-11-13 12:30:14 -0500 |
| commit | ab4b34f75f5762b4bc87ccc49df73ebf0f633c5a (patch) | |
| tree | 4d9a7d129201024c9598da7999c181a3d5738b58 /lib | |
| parent | b52a28a8026d552e10cb18c3b7b1f7b10d23bf81 (diff) | |
| download | zig-ab4b34f75f5762b4bc87ccc49df73ebf0f633c5a.tar.gz zig-ab4b34f75f5762b4bc87ccc49df73ebf0f633c5a.zip | |
openbsd: skip tests using Dir.realpath
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/std/fs/test.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/fs/test.zig b/lib/std/fs/test.zig index ecef48d05e..8c24265db8 100644 --- a/lib/std/fs/test.zig +++ b/lib/std/fs/test.zig @@ -227,7 +227,7 @@ test "directory operations on files" { testing.expectError(error.NotDir, tmp_dir.dir.openDir(test_file_name, .{})); testing.expectError(error.NotDir, tmp_dir.dir.deleteDir(test_file_name)); - if (builtin.os.tag != .wasi and builtin.os.tag != .freebsd) { + if (builtin.os.tag != .wasi and builtin.os.tag != .freebsd and builtin.os.tag != .openbsd) { const absolute_path = try tmp_dir.dir.realpathAlloc(testing.allocator, test_file_name); defer testing.allocator.free(absolute_path); @@ -264,7 +264,7 @@ test "file operations on directories" { // TODO: Add a read-only test as well, see https://github.com/ziglang/zig/issues/5732 testing.expectError(error.IsDir, tmp_dir.dir.openFile(test_dir_name, .{ .write = true })); - if (builtin.os.tag != .wasi and builtin.os.tag != .freebsd) { + if (builtin.os.tag != .wasi and builtin.os.tag != .freebsd and builtin.os.tag != .openbsd) { const absolute_path = try tmp_dir.dir.realpathAlloc(testing.allocator, test_dir_name); defer testing.allocator.free(absolute_path); |
