Skip to content

Commit eed6004

Browse files
committed
Run all four tests in sequence
1 parent 7f5621e commit eed6004

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/gc/stm_tests.ml

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@ open QCheck
44

55
module GC_STM_seq = STM_sequential.Make(GCConf)
66
module GC_STM_dom = STM_domain.Make(GCConf)
7-
(*
7+
88
let agree_prop cs = match Util.protect GC_STM_seq.agree_prop cs with
99
| Ok r -> r
1010
| Error Stack_overflow -> true (* Stack_overflow is accepted behaviour *)
1111
| Error e -> raise e
12-
*)
12+
1313
(* Run seq. property in a child domain to stresstest parent-child GC *)
1414
let agree_child_prop cs = match Domain.spawn (fun () -> Util.protect GC_STM_seq.agree_prop cs) |> Domain.join with
1515
| Ok r -> r
1616
| Error Stack_overflow -> true (* Stack_overflow is accepted behaviour *)
1717
| Error e -> raise e
18-
(*
18+
1919
let agree_test ~count ~name =
2020
Test.make ~name ~count (GC_STM_seq.arb_cmds GCConf.init_state) agree_prop
21-
*)
21+
2222
let agree_child_test ~count ~name =
2323
Test.make ~name ~count (GC_STM_seq.arb_cmds GCConf.init_state) agree_child_prop
2424

2525
let _ =
2626
Printf.printf "Page size: %i\n" (Pagesize.get ());
2727
QCheck_base_runner.run_tests_main [
28-
(*agree_test ~count:1000 ~name:"STM Gc test sequential";*)
28+
agree_test ~count:1000 ~name:"STM Gc test sequential";
2929
agree_child_test ~count:1000 ~name:"STM Gc test sequential in child domain";
30-
(*GC_STM_dom.neg_agree_test_par ~count:1000 ~name:"STM Gc test parallel";*)
30+
GC_STM_dom.neg_agree_test_par ~count:1000 ~name:"STM Gc test parallel";
3131
GC_STM_dom.stress_test_par ~count:1000 ~name:"STM Gc stress test parallel";
3232
]

0 commit comments

Comments
 (0)