Commit eed6004 1 parent 7f5621e commit eed6004 Copy full SHA for eed6004
File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -4,29 +4,29 @@ open QCheck
4
4
5
5
module GC_STM_seq = STM_sequential. Make (GCConf )
6
6
module GC_STM_dom = STM_domain. Make (GCConf )
7
- (*
7
+
8
8
let agree_prop cs = match Util. protect GC_STM_seq. agree_prop cs with
9
9
| Ok r -> r
10
10
| Error Stack_overflow -> true (* Stack_overflow is accepted behaviour *)
11
11
| Error e -> raise e
12
- *)
12
+
13
13
(* Run seq. property in a child domain to stresstest parent-child GC *)
14
14
let agree_child_prop cs = match Domain. spawn (fun () -> Util. protect GC_STM_seq. agree_prop cs) |> Domain. join with
15
15
| Ok r -> r
16
16
| Error Stack_overflow -> true (* Stack_overflow is accepted behaviour *)
17
17
| Error e -> raise e
18
- (*
18
+
19
19
let agree_test ~count ~name =
20
20
Test. make ~name ~count (GC_STM_seq. arb_cmds GCConf. init_state) agree_prop
21
- *)
21
+
22
22
let agree_child_test ~count ~name =
23
23
Test. make ~name ~count (GC_STM_seq. arb_cmds GCConf. init_state) agree_child_prop
24
24
25
25
let _ =
26
26
Printf. printf " Page size: %i\n " (Pagesize. get () );
27
27
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" ;
29
29
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" ;
31
31
GC_STM_dom. stress_test_par ~count: 1000 ~name: " STM Gc stress test parallel" ;
32
32
]
You can’t perform that action at this time.
0 commit comments