We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b6fbc1 commit 915f5a9Copy full SHA for 915f5a9
test/test.ml
@@ -36,6 +36,14 @@ end
36
37
module T = struct
38
39
+ let init () =
40
+ let maxfds = 1024 in
41
+ let poll = Poll.create ~maxfds () in
42
+ for i = 0 to maxfds - 1 do
43
+ let v = (Poll.get_fd poll i) = Poll.invalid_fd in
44
+ check_bool "initialized" v true
45
+ done
46
+
47
let basic () =
48
let poll = Poll.create ~maxfds:16 () in
49
let r, w = Unix.pipe () in
@@ -103,6 +111,7 @@ module T = struct
103
111
let open Alcotest in
104
112
let wlc = U.with_leak_checker in
105
113
run "Iomux" [
114
+ "init", [ test_case "" `Quick (wlc init) ];
106
115
"unit", [ test_case "" `Quick (wlc basic) ];
107
116
"ppoll_timo", [ test_case "" `Quick (wlc ppoll_timo) ];
108
117
"ppoll_or_poll", [ test_case "" `Quick (wlc ppoll_or_poll) ];
0 commit comments