Skip to content

Commit a624a1c

Browse files
raphael-proustsmorimoto
authored andcommitted
Update test/unix/test_lwt_process.ml
1 parent e0a3dd0 commit a624a1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/unix/test_lwt_process.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ let pwrite ~stdin pout expected =
3535

3636
let read_all ic buf ofs len =
3737
let rec loop ic buf ofs len =
38+
assert (len >= 0);
3839
Lwt_unix.read ic buf ofs len >>= function
3940
| 0 ->
4041
Lwt.return ofs

0 commit comments

Comments
 (0)