diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-10-12 20:05:34 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-10-12 20:08:23 -0700 |
| commit | 27b04d59056ff8d8ab52f6578b1e0559545efcdd (patch) | |
| tree | 609c5ba38f06451f9194f09de10c29a2c7a47473 /lib/std | |
| parent | 74e3ffa9b4fec971a18d08cc808f3ed9b884db15 (diff) | |
| download | zig-27b04d59056ff8d8ab52f6578b1e0559545efcdd.tar.gz zig-27b04d59056ff8d8ab52f6578b1e0559545efcdd.zip | |
disable the failing std lib freebsd tests
enable std lib freebsd tests on the CI
See #1759
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/fs/test.zig | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/std/fs/test.zig b/lib/std/fs/test.zig index 860da8ef16..9335ea55f3 100644 --- a/lib/std/fs/test.zig +++ b/lib/std/fs/test.zig @@ -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) { + if (builtin.os.tag != .wasi and builtin.os.tag != .freebsd) { const absolute_path = try tmp_dir.dir.realpathAlloc(testing.allocator, test_file_name); defer testing.allocator.free(absolute_path); @@ -243,6 +243,9 @@ test "directory operations on files" { } test "file operations on directories" { + // TODO: fix this test on FreeBSD. https://github.com/ziglang/zig/issues/1759 + if (builtin.os.tag == .freebsd) return error.SkipZigTest; + var tmp_dir = tmpDir(.{}); defer tmp_dir.cleanup(); @@ -261,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) { + if (builtin.os.tag != .wasi and builtin.os.tag != .freebsd) { const absolute_path = try tmp_dir.dir.realpathAlloc(testing.allocator, test_dir_name); defer testing.allocator.free(absolute_path); @@ -656,6 +659,9 @@ const FILE_LOCK_TEST_SLEEP_TIME = 5 * std.time.ns_per_ms; test "open file with exclusive nonblocking lock twice" { if (builtin.os.tag == .wasi) return error.SkipZigTest; + // TODO: fix this test on FreeBSD. https://github.com/ziglang/zig/issues/1759 + if (builtin.os.tag == .freebsd) return error.SkipZigTest; + const dir = fs.cwd(); const filename = "file_nonblocking_lock_test.txt"; @@ -757,6 +763,9 @@ test "create file, lock and read from multiple process at once" { test "open file with exclusive nonblocking lock twice (absolute paths)" { if (builtin.os.tag == .wasi) return error.SkipZigTest; + // TODO: fix this test on FreeBSD. https://github.com/ziglang/zig/issues/1759 + if (builtin.os.tag == .freebsd) return error.SkipZigTest; + const allocator = testing.allocator; const file_paths: [1][]const u8 = .{"zig-test-absolute-paths.txt"}; |
