authorgravatar for semarie@online.frSébastien Marie <semarie@online.fr> 2020-11-11 07:08:20+00:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-11-13 12:30:14-05:00
logab4b34f75f5762b4bc87ccc49df73ebf0f633c5a
tree4d9a7d129201024c9598da7999c181a3d5738b58
parentb52a28a8026d552e10cb18c3b7b1f7b10d23bf81

openbsd: skip tests using Dir.realpath


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/fs/test.zig+2-2
...@@ -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));
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) {
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);
233233
...@@ -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/5732264 // 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 }));
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) {
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);
270270