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 e0a3dd0 commit a624a1cCopy full SHA for a624a1c
test/unix/test_lwt_process.ml
@@ -35,6 +35,7 @@ let pwrite ~stdin pout expected =
35
36
let read_all ic buf ofs len =
37
let rec loop ic buf ofs len =
38
+ assert (len >= 0);
39
Lwt_unix.read ic buf ofs len >>= function
40
| 0 ->
41
Lwt.return ofs
0 commit comments