| ... | ... | @@ -227,7 +227,7 @@ test "directory operations on files" { |
| 227 | 227 | testing.expectError(error.NotDir, tmp_dir.dir.openDir(test_file_name, .{})); |
| 228 | 228 | testing.expectError(error.NotDir, tmp_dir.dir.deleteDir(test_file_name)); |
| 229 | 229 | |
| 230 | | if (builtin.os.tag != .wasi) { |
| 230 | if (builtin.os.tag != .wasi and builtin.os.tag != .freebsd) { |
| 231 | 231 | const absolute_path = try tmp_dir.dir.realpathAlloc(testing.allocator, test_file_name); |
| 232 | 232 | defer testing.allocator.free(absolute_path); |
| 233 | 233 | |
| ... | ... | @@ -243,6 +243,9 @@ test "directory operations on files" { |
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | test "file operations on directories" { |
| 246 | // TODO: fix this test on FreeBSD. https://github.com/ziglang/zig/issues/1759 |
| 247 | if (builtin.os.tag == .freebsd) return error.SkipZigTest; |
| 248 | |
| 246 | 249 | var tmp_dir = tmpDir(.{}); |
| 247 | 250 | defer tmp_dir.cleanup(); |
| 248 | 251 | |
| ... | ... | @@ -261,7 +264,7 @@ test "file operations on directories" { |
| 261 | 264 | // TODO: Add a read-only test as well, see https://github.com/ziglang/zig/issues/5732 |
| 262 | 265 | testing.expectError(error.IsDir, tmp_dir.dir.openFile(test_dir_name, .{ .write = true })); |
| 263 | 266 | |
| 264 | | if (builtin.os.tag != .wasi) { |
| 267 | if (builtin.os.tag != .wasi and builtin.os.tag != .freebsd) { |
| 265 | 268 | const absolute_path = try tmp_dir.dir.realpathAlloc(testing.allocator, test_dir_name); |
| 266 | 269 | defer testing.allocator.free(absolute_path); |
| 267 | 270 | |
| ... | ... | @@ -656,6 +659,9 @@ const FILE_LOCK_TEST_SLEEP_TIME = 5 * std.time.ns_per_ms; |
| 656 | 659 | test "open file with exclusive nonblocking lock twice" { |
| 657 | 660 | if (builtin.os.tag == .wasi) return error.SkipZigTest; |
| 658 | 661 | |
| 662 | // TODO: fix this test on FreeBSD. https://github.com/ziglang/zig/issues/1759 |
| 663 | if (builtin.os.tag == .freebsd) return error.SkipZigTest; |
| 664 | |
| 659 | 665 | const dir = fs.cwd(); |
| 660 | 666 | const filename = "file_nonblocking_lock_test.txt"; |
| 661 | 667 | |
| ... | ... | @@ -757,6 +763,9 @@ test "create file, lock and read from multiple process at once" { |
| 757 | 763 | test "open file with exclusive nonblocking lock twice (absolute paths)" { |
| 758 | 764 | if (builtin.os.tag == .wasi) return error.SkipZigTest; |
| 759 | 765 | |
| 766 | // TODO: fix this test on FreeBSD. https://github.com/ziglang/zig/issues/1759 |
| 767 | if (builtin.os.tag == .freebsd) return error.SkipZigTest; |
| 768 | |
| 760 | 769 | const allocator = testing.allocator; |
| 761 | 770 | |
| 762 | 771 | const file_paths: [1][]const u8 = .{"zig-test-absolute-paths.txt"}; |