| ... | @@ -1724,6 +1724,8 @@ test "" { | ... | @@ -1724,6 +1724,8 @@ test "" { |
| 1724 | const FILE_LOCK_TEST_SLEEP_TIME = 1 * std.time.ns_per_s; | 1724 | const FILE_LOCK_TEST_SLEEP_TIME = 1 * std.time.ns_per_s; |
| 1725 | | 1725 | |
| 1726 | test "open file with lock twice, make sure it wasn't open at the same time" { | 1726 | test "open file with lock twice, make sure it wasn't open at the same time" { |
| | 1727 | if (builtin.single_threaded) return; |
| | 1728 | |
| 1727 | const filename = "file_lock_test.txt"; | 1729 | const filename = "file_lock_test.txt"; |
| 1728 | | 1730 | |
| 1729 | var contexts = [_]FileLockTestContext{ | 1731 | var contexts = [_]FileLockTestContext{ |
| ... | @@ -1751,6 +1753,8 @@ test "open file with lock twice, make sure it wasn't open at the same time" { | ... | @@ -1751,6 +1753,8 @@ test "open file with lock twice, make sure it wasn't open at the same time" { |
| 1751 | } | 1753 | } |
| 1752 | | 1754 | |
| 1753 | test "create file, lock and read from multiple process at once" { | 1755 | test "create file, lock and read from multiple process at once" { |
| | 1756 | if (builtin.single_threaded) return; |
| | 1757 | |
| 1754 | const filename = "file_read_lock_test.txt"; | 1758 | const filename = "file_read_lock_test.txt"; |
| 1755 | const filedata = "Hello, world!\n"; | 1759 | const filedata = "Hello, world!\n"; |
| 1756 | | 1760 | |