Skip to content

Commit

Permalink
openbsd: skip tests using Dir.realpath
Browse files Browse the repository at this point in the history
  • Loading branch information
semarie authored and andrewrk committed Nov 13, 2020
1 parent b52a28a commit ab4b34f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/std/fs/test.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit ab4b34f

Please sign in to comment.