Skip to content

Commit 077da06

Browse files
authored
Merge pull request #377 from ocaml-multicore/stm-par-asym-refactor
Refactor STM par asym tests and increment count
2 parents e5ee87b + a3a67a7 commit 077da06

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

src/neg_tests/dune

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@
2323
(action (run %{test} --verbose))
2424
)
2525

26+
(test
27+
(name stm_tests_domain_ref_asym)
28+
(modules stm_tests_domain_ref_asym)
29+
(package multicoretests)
30+
(libraries stm_tests_spec_ref qcheck-stm.domain)
31+
(action (run %{test} --verbose))
32+
)
33+
2634
(test
2735
(name stm_tests_thread_ref)
2836
(modules stm_tests_thread_ref)

src/neg_tests/stm_tests_domain_ref.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ module RT_int64 = STM_domain.Make(RConf_int64)
66
QCheck_base_runner.run_tests_main
77
[RT_int.neg_agree_test_par ~count:1000 ~name:"STM int ref test parallel";
88
RT_int64.neg_agree_test_par ~count:1000 ~name:"STM int64 ref test parallel";
9-
RT_int.neg_agree_test_par_asym ~count:2000 ~name:"STM int ref test parallel asymmetric";
10-
RT_int64.neg_agree_test_par_asym ~count:2000 ~name:"STM int64 ref test parallel asymmetric";
119
]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
open Stm_tests_spec_ref
2+
3+
module RT_int = STM_domain.Make(RConf_int)
4+
module RT_int64 = STM_domain.Make(RConf_int64)
5+
;;
6+
QCheck_base_runner.run_tests_main
7+
[RT_int.neg_agree_test_par_asym ~count:5000 ~name:"STM int ref test parallel asymmetric";
8+
RT_int64.neg_agree_test_par_asym ~count:5000 ~name:"STM int64 ref test parallel asymmetric";
9+
]

0 commit comments

Comments
 (0)