Skip to content

Commit

Permalink
Add more tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewchambers committed Jan 6, 2020
1 parent 533bbc6 commit c5fd572
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/flock.janet
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
(unless (flock/acquire "/tmp/janet-flock-test.lock" :noblock :exclusive l3)
(error "expected lock success"))

(:close l3)

(when (flock/acquire "/tmp/janet-flock-test.lock" :noblock :shared l2)
(error "expected lock failure"))
(unless (flock/acquire "/tmp/janet-flock-test.lock" :noblock :shared)
(error "expected lock success"))

0 comments on commit c5fd572

Please sign in to comment.