@@ -825,43 +825,9 @@ let test42 =
825825 let prm1 = Miou. call @@ fun () -> Miou. yield () in
826826 Miou. await_exn prm1; Miou. cancel prm0; Test. check true
827827
828- let test43 =
829- let description = {text| Unix. create_process| text} in
830- Test. test ~title: " test43" ~description @@ fun () ->
831- let buf = Buffer. create 0x7ff in
832- let prgm () =
833- Miou. run @@ fun () ->
834- let pid =
835- Unix. create_process " sleep" [| " sleep" ; " 2" |] Unix. stdin Unix. stdout
836- Unix. stderr
837- in
838- Buffer. add_string buf " sleep launched\n " ;
839- let cmp = Miou.Computation. create () in
840- let rec fn _sigchld =
841- match Unix. waitpid [ WNOHANG ] pid with
842- | 0 , _ -> ignore (Miou. sys_signal Sys. sigchld (Sys. Signal_handle fn))
843- | pid' , status ->
844- assert (pid = pid');
845- assert (Miou.Computation. try_return cmp status)
846- in
847- ignore (Miou. sys_signal Sys. sigchld (Sys. Signal_handle fn));
848- Buffer. add_string buf " signal handler installed\n " ;
849- match Miou.Computation. await_exn cmp with
850- | Unix. WEXITED n -> Buffer. add_string buf (Fmt. str " WEXITED(%d)\n %!" n)
851- | Unix. WSIGNALED n -> Buffer. add_string buf (Fmt. str " WSIGNALED(%d)\n %!" n)
852- | Unix. WSTOPPED n -> Buffer. add_string buf (Fmt. str " WSIGNALED(%d)\n %!" n)
853- in
854- match Sys. os_type with
855- | "Win32" -> ()
856- | _ ->
857- prgm () ;
858- let serialized = Buffer. contents buf in
859- let expected = " sleep launched\n signal handler installed\n WEXITED(0)\n " in
860- Test. check (serialized = expected)
861-
862828module Bitv = Miou_unix. Bitv
863829
864- let test44 =
830+ let test43 =
865831 let description = {text| Bitv. next| text} in
866832 Test. test ~title: " test44" ~description @@ fun () ->
867833 let t = Bitv. create 1024 false in
@@ -876,7 +842,7 @@ let test44 =
876842 Test. check ! v;
877843 Test. check (Bitv. next t = None )
878844
879- let test45 =
845+ let test44 =
880846 let description = {text| Bitv. max| text} in
881847 Test. test ~title: " test45" ~description @@ fun () ->
882848 let t = Bitv. create 1024 false in
@@ -896,7 +862,7 @@ let () =
896862 ; test10; test11; test12; test13; test14; test15; test16; test17; test18
897863 ; test19; test20; test21; test22; test23; test24; test25; test26; test27
898864 ; test28; test29; test30; test31; test32; test33; test34; test35; test36
899- ; test37; test38; test39; test40; test41; test42; test43; test44; test45
865+ ; test37; test38; test39; test40; test41; test42; test43; test44
900866 ]
901867 in
902868 let ({ Test. directory } as runner) =
0 commit comments