Skip to content

Commit fdb7132

Browse files
authored
Merge pull request #411 from ocaml-multicore/disable-lin-queue-bytecode
Disable Lin_thread Queue test under bytecode
2 parents 31d7bee + dcedc86 commit fdb7132

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/queue/lin_tests.ml

+9-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@ module Lin_queue_domain = Lin_domain.Make(Queue_spec)
2121
module Lin_queue_thread = Lin_thread.Make(Queue_spec) [@alert "-experimental"]
2222

2323
let () =
24-
QCheck_base_runner.run_tests_main [
24+
let tests = [
2525
Lin_queue_domain.neg_lin_test ~count:1000 ~name:"Lin Queue test with Domain";
2626
Lin_queue_thread.lin_test ~count:250 ~name:"Lin Queue test with Thread";
27-
]
27+
] in
28+
let tests =
29+
if Sys.backend_type = Sys.Bytecode then (
30+
Printf.printf "Lin Queue test with Thread disabled under bytecode\n\n%!";
31+
[ List.hd tests ])
32+
else tests
33+
in
34+
QCheck_base_runner.run_tests_main tests

0 commit comments

Comments
 (0)