| ... | @@ -227,7 +227,7 @@ test "directory operations on files" { | ... | @@ -227,7 +227,7 @@ test "directory operations on files" { |
| 227 | testing.expectError(error.NotDir, tmp_dir.dir.openDir(test_file_name, .{})); | 227 | testing.expectError(error.NotDir, tmp_dir.dir.openDir(test_file_name, .{})); |
| 228 | testing.expectError(error.NotDir, tmp_dir.dir.deleteDir(test_file_name)); | 228 | testing.expectError(error.NotDir, tmp_dir.dir.deleteDir(test_file_name)); |
| 229 | | 229 | |
| 230 | if (builtin.os.tag != .wasi and builtin.os.tag != .freebsd) { | 230 | if (builtin.os.tag != .wasi and builtin.os.tag != .freebsd and builtin.os.tag != .openbsd) { |
| 231 | const absolute_path = try tmp_dir.dir.realpathAlloc(testing.allocator, test_file_name); | 231 | const absolute_path = try tmp_dir.dir.realpathAlloc(testing.allocator, test_file_name); |
| 232 | defer testing.allocator.free(absolute_path); | 232 | defer testing.allocator.free(absolute_path); |
| 233 | | 233 | |
| ... | @@ -264,7 +264,7 @@ test "file operations on directories" { | ... | @@ -264,7 +264,7 @@ test "file operations on directories" { |
| 264 | // TODO: Add a read-only test as well, see https://github.com/ziglang/zig/issues/5732 | 264 | // TODO: Add a read-only test as well, see https://github.com/ziglang/zig/issues/5732 |
| 265 | testing.expectError(error.IsDir, tmp_dir.dir.openFile(test_dir_name, .{ .write = true })); | 265 | testing.expectError(error.IsDir, tmp_dir.dir.openFile(test_dir_name, .{ .write = true })); |
| 266 | | 266 | |
| 267 | if (builtin.os.tag != .wasi and builtin.os.tag != .freebsd) { | 267 | if (builtin.os.tag != .wasi and builtin.os.tag != .freebsd and builtin.os.tag != .openbsd) { |
| 268 | const absolute_path = try tmp_dir.dir.realpathAlloc(testing.allocator, test_dir_name); | 268 | const absolute_path = try tmp_dir.dir.realpathAlloc(testing.allocator, test_dir_name); |
| 269 | defer testing.allocator.free(absolute_path); | 269 | defer testing.allocator.free(absolute_path); |
| 270 | | 270 | |