@@ -139,29 +139,31 @@ let () =
139139 let open Alcotest in
140140 run " Mpmc_queue"
141141 (let open Mpmc_relaxed_queue.Not_lockfree in
142- [
143- ( " single-thread" ,
144- [ test_case " is it a queue" `Quick (smoke_test (push, pop)) ] );
145- ( " validate items" ,
146- [ test_case " 1 prod. 1 cons." `Quick (two_threads_test (push, pop)) ] );
147- ( " validate indices under load" ,
148- [
149- test_case " 4 prod. 4 cons." `Slow (run_test 4 4 );
150- test_case " 8 prod. 1 cons." `Slow (run_test 8 1 );
151- test_case " 1 prod. 8 cons." `Slow (run_test 1 8 );
152- ] );
153- ]
154- @
155- let open Mpmc_relaxed_queue.Not_lockfree.CAS_interface in
156- [
157- ( " single-thread-CAS-intf" ,
158- [ test_case " is it a queue" `Quick (smoke_test (push, pop)) ] );
159- ( " validate items-CAS-intf" ,
160- [ test_case " 1 prod. 1 cons." `Quick (two_threads_test (push, pop)) ] );
161- ]
162- @ [
163- ( " single-thread-spinning" ,
164- [ test_case " is it a queue" `Quick smoke_test_spinning ] );
165- ( " validate-items-spinning" ,
166- [ test_case " 1 prod. 1 cons" `Quick two_threads_spin_test ] );
167- ])
142+ [
143+ ( " single-thread" ,
144+ [ test_case " is it a queue" `Quick (smoke_test (push, pop)) ] );
145+ ( " validate items" ,
146+ [ test_case " 1 prod. 1 cons." `Quick (two_threads_test (push, pop)) ]
147+ );
148+ ( " validate indices under load" ,
149+ [
150+ test_case " 4 prod. 4 cons." `Slow (run_test 4 4 );
151+ test_case " 8 prod. 1 cons." `Slow (run_test 8 1 );
152+ test_case " 1 prod. 8 cons." `Slow (run_test 1 8 );
153+ ] );
154+ ]
155+ @
156+ let open Mpmc_relaxed_queue.Not_lockfree.CAS_interface in
157+ [
158+ ( " single-thread-CAS-intf" ,
159+ [ test_case " is it a queue" `Quick (smoke_test (push, pop)) ] );
160+ ( " validate items-CAS-intf" ,
161+ [ test_case " 1 prod. 1 cons." `Quick (two_threads_test (push, pop)) ]
162+ );
163+ ]
164+ @ [
165+ ( " single-thread-spinning" ,
166+ [ test_case " is it a queue" `Quick smoke_test_spinning ] );
167+ ( " validate-items-spinning" ,
168+ [ test_case " 1 prod. 1 cons" `Quick two_threads_spin_test ] );
169+ ])
0 commit comments