mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-05 19:00:33 -05:00
test do not need preprocessor anymore
This commit is contained in:
parent
0ab99517d5
commit
b9bbcf82f7
9 changed files with 0 additions and 35 deletions
|
|
@ -9,9 +9,6 @@
|
||||||
t_sort
|
t_sort
|
||||||
t_fork_join
|
t_fork_join
|
||||||
t_fork_join_heavy)
|
t_fork_join_heavy)
|
||||||
(preprocess
|
|
||||||
(action
|
|
||||||
(run %{project_root}/src/cpp/cpp.exe %{input-file})))
|
|
||||||
(enabled_if
|
(enabled_if
|
||||||
(and
|
(and
|
||||||
(= %{system} "linux")
|
(= %{system} "linux")
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
[@@@ifge 5.0]
|
|
||||||
|
|
||||||
open Moonpool
|
open Moonpool
|
||||||
|
|
||||||
let ( let@ ) = ( @@ )
|
let ( let@ ) = ( @@ )
|
||||||
|
|
@ -56,5 +54,3 @@ let main () =
|
||||||
let () =
|
let () =
|
||||||
let@ () = Trace_tef.with_setup () in
|
let@ () = Trace_tef.with_setup () in
|
||||||
main ()
|
main ()
|
||||||
|
|
||||||
[@@@endif]
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
[@@@ifge 5.0]
|
|
||||||
|
|
||||||
open Moonpool
|
open Moonpool
|
||||||
module FJ = Moonpool_forkjoin
|
module FJ = Moonpool_forkjoin
|
||||||
|
|
||||||
|
|
@ -52,5 +50,3 @@ let () =
|
||||||
(* now make sure we can do this with multiple pools in parallel *)
|
(* now make sure we can do this with multiple pools in parallel *)
|
||||||
let jobs = Array.init 2 (fun _ -> Thread.create run_test ()) in
|
let jobs = Array.init 2 (fun _ -> Thread.create run_test ()) in
|
||||||
Array.iter Thread.join jobs
|
Array.iter Thread.join jobs
|
||||||
|
|
||||||
[@@@endif]
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
[@@@ifge 5.0]
|
|
||||||
|
|
||||||
let ( let@ ) = ( @@ )
|
let ( let@ ) = ( @@ )
|
||||||
|
|
||||||
open Moonpool
|
open Moonpool
|
||||||
|
|
@ -44,5 +42,3 @@ let () =
|
||||||
(* now make sure we can do this with multiple pools in parallel *)
|
(* now make sure we can do this with multiple pools in parallel *)
|
||||||
let jobs = Array.init 2 (fun _ -> Thread.create run_test ()) in
|
let jobs = Array.init 2 (fun _ -> Thread.create run_test ()) in
|
||||||
Array.iter Thread.join jobs
|
Array.iter Thread.join jobs
|
||||||
|
|
||||||
[@@@endif]
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
[@@@ifge 5.0]
|
|
||||||
|
|
||||||
let spf = Printf.sprintf
|
let spf = Printf.sprintf
|
||||||
let ( let@ ) = ( @@ )
|
let ( let@ ) = ( @@ )
|
||||||
|
|
||||||
|
|
@ -328,5 +326,3 @@ let () =
|
||||||
t_for_nested ~min:1 ~chunk_size:100 ();
|
t_for_nested ~min:1 ~chunk_size:100 ();
|
||||||
t_for_nested ~min:4 ~chunk_size:100 ();
|
t_for_nested ~min:4 ~chunk_size:100 ();
|
||||||
]
|
]
|
||||||
|
|
||||||
[@@@endif]
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
[@@@ifge 5.0]
|
|
||||||
|
|
||||||
module Q = QCheck
|
module Q = QCheck
|
||||||
|
|
||||||
let spf = Printf.sprintf
|
let spf = Printf.sprintf
|
||||||
|
|
@ -52,5 +50,3 @@ let () =
|
||||||
run ~min:4 ();
|
run ~min:4 ();
|
||||||
run ~min:1 ();
|
run ~min:1 ();
|
||||||
Printf.printf "done\n%!"
|
Printf.printf "done\n%!"
|
||||||
|
|
||||||
[@@@endif]
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
[@@@ifge 5.0]
|
|
||||||
|
|
||||||
open! Moonpool
|
open! Moonpool
|
||||||
|
|
||||||
let pool = Ws_pool.create ~num_threads:4 ()
|
let pool = Ws_pool.create ~num_threads:4 ()
|
||||||
|
|
@ -53,5 +51,3 @@ let () =
|
||||||
in
|
in
|
||||||
let fut = Fut.both f1 f2 in
|
let fut = Fut.both f1 f2 in
|
||||||
assert (Fut.wait_block fut = Ok (2, 20))
|
assert (Fut.wait_block fut = Ok (2, 20))
|
||||||
|
|
||||||
[@@@endif]
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
[@@@ifge 5.0]
|
|
||||||
|
|
||||||
open Moonpool
|
open Moonpool
|
||||||
|
|
||||||
let ( let@ ) = ( @@ )
|
let ( let@ ) = ( @@ )
|
||||||
|
|
@ -44,5 +42,3 @@ let () =
|
||||||
run ~pool ());
|
run ~pool ());
|
||||||
|
|
||||||
()
|
()
|
||||||
|
|
||||||
[@@@endif]
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
[@@@ifge 5.0]
|
|
||||||
|
|
||||||
open Moonpool
|
open Moonpool
|
||||||
module FJ = Moonpool_forkjoin
|
module FJ = Moonpool_forkjoin
|
||||||
|
|
||||||
|
|
@ -69,5 +67,3 @@ let () =
|
||||||
(* Printf.printf "arr: [%s]\n%!" *)
|
(* Printf.printf "arr: [%s]\n%!" *)
|
||||||
(* (String.concat ", " @@ List.map string_of_int @@ Array.to_list arr); *)
|
(* (String.concat ", " @@ List.map string_of_int @@ Array.to_list arr); *)
|
||||||
assert (sorted arr)
|
assert (sorted arr)
|
||||||
|
|
||||||
[@@@endif]
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue