We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb69668 commit 1fa62beCopy full SHA for 1fa62be
jscomp/ounit/oUnit.ml
@@ -231,11 +231,11 @@ let assert_command
231
(* Dump process output to stderr *)
232
begin
233
let chn = open_in fn_out in
234
- let buff = String.make 4096 'X' in
+ let buff = Bytes.make 4096 'X' in
235
let len = ref (-1) in
236
while !len <> 0 do
237
- len := input chn buff 0 (String.length buff);
238
- OUnitLogger.printf !global_logger "%s" (String.sub buff 0 !len);
+ len := input chn buff 0 (Bytes.length buff);
+ OUnitLogger.printf !global_logger "%s" (Bytes.to_string @@ Bytes.sub buff 0 !len);
239
done;
240
close_in chn
241
end;
0 commit comments