mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 05:20:34 +00:00
Skip file lock test in single threaded mode
This commit is contained in:
parent
947abb7626
commit
819537d70a
@ -1724,6 +1724,8 @@ test "" {
|
||||
const FILE_LOCK_TEST_SLEEP_TIME = 1 * std.time.ns_per_s;
|
||||
|
||||
test "open file with lock twice, make sure it wasn't open at the same time" {
|
||||
if (builtin.single_threaded) return;
|
||||
|
||||
const filename = "file_lock_test.txt";
|
||||
|
||||
var contexts = [_]FileLockTestContext{
|
||||
@ -1751,6 +1753,8 @@ test "open file with lock twice, make sure it wasn't open at the same time" {
|
||||
}
|
||||
|
||||
test "create file, lock and read from multiple process at once" {
|
||||
if (builtin.single_threaded) return;
|
||||
|
||||
const filename = "file_read_lock_test.txt";
|
||||
const filedata = "Hello, world!\n";
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user