aboutsummaryrefslogtreecommitdiff
path: root/lib/std/fs
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2020-11-22 23:28:40 +0100
committerLemonBoy <thatlemon@gmail.com>2020-11-23 18:00:05 +0100
commitf8ddc3d8732feece71d6ee55cdfc4d61a5a7e16e (patch)
tree725d930ad3dcba14370029dc649df54ef1a772e4 /lib/std/fs
parent9d2fe1682f19bd21a393deeea2c4173b4429b482 (diff)
downloadzig-f8ddc3d8732feece71d6ee55cdfc4d61a5a7e16e.tar.gz
zig-f8ddc3d8732feece71d6ee55cdfc4d61a5a7e16e.zip
std: Fix file locking logic for BSD targets
Diffstat (limited to 'lib/std/fs')
-rw-r--r--lib/std/fs/test.zig12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/std/fs/test.zig b/lib/std/fs/test.zig
index 5469192f6c..3850758baa 100644
--- a/lib/std/fs/test.zig
+++ b/lib/std/fs/test.zig
@@ -691,9 +691,6 @@ test "realpath" {
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 filename = "file_nonblocking_lock_test.txt";
var tmp = tmpDir(.{});
@@ -709,9 +706,6 @@ test "open file with exclusive nonblocking lock twice" {
test "open file with shared and exclusive nonblocking lock" {
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 filename = "file_nonblocking_lock_test.txt";
var tmp = tmpDir(.{});
@@ -727,9 +721,6 @@ test "open file with shared and exclusive nonblocking lock" {
test "open file with exclusive and shared nonblocking lock" {
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 filename = "file_nonblocking_lock_test.txt";
var tmp = tmpDir(.{});
@@ -791,9 +782,6 @@ test "open file with exclusive lock twice, make sure it waits" {
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"};