ports/devel/p5-Lock-File/files/patch-t_test.t
Norikatsu Shigemura f4c9fe9a81
devel/p5-Lock-File: Add new port
The Lock::File module provides flock wrapper functions that watch the
associated object and release it automatically if the object has no
reference.

Approved by:	hrs (mentor)
2024-02-28 20:57:11 +09:00

13 lines
715 B
Raku

--- t/test.t.orig 2013-06-16 20:59:45 UTC
+++ t/test.t
@@ -177,8 +177,8 @@ sub timeout :Tests {
sleep 5; # timeout don't support float values, so we can't use tsleep here
});
- ok(exception { lockf("tfiles/lock", { timeout => 3, blocking => 0 }) }, "timeout is incompatible with blocking => 0");
- ok(!exception { lockf("tfiles/lock", { timeout => 3, blocking => 1 }) }, "timeout is compatible with blocking => 1");
+ ok(exception { lockfile("tfiles/lock", { timeout => 3, blocking => 0 }) }, "timeout is incompatible with blocking => 0");
+ ok(!exception { lockfile("tfiles/lock", { timeout => 3, blocking => 1 }) }, "timeout is compatible with blocking => 1");
}
sub mode :Tests {