Skip to content

Commit ab4b34f

Browse files
semarieandrewrk
authored andcommitted
openbsd: skip tests using Dir.realpath
1 parent b52a28a commit ab4b34f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/std/fs/test.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ test "directory operations on files" {
227227
testing.expectError(error.NotDir, tmp_dir.dir.openDir(test_file_name, .{}));
228228
testing.expectError(error.NotDir, tmp_dir.dir.deleteDir(test_file_name));
229229

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) {
231231
const absolute_path = try tmp_dir.dir.realpathAlloc(testing.allocator, test_file_name);
232232
defer testing.allocator.free(absolute_path);
233233

@@ -264,7 +264,7 @@ test "file operations on directories" {
264264
// TODO: Add a read-only test as well, see https://github.com/ziglang/zig/issues/5732
265265
testing.expectError(error.IsDir, tmp_dir.dir.openFile(test_dir_name, .{ .write = true }));
266266

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) {
268268
const absolute_path = try tmp_dir.dir.realpathAlloc(testing.allocator, test_dir_name);
269269
defer testing.allocator.free(absolute_path);
270270

0 commit comments

Comments
 (0)