Skip to content

Disable Lin Bytes test under OCaml 5.2 and earlier #548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions src/bytes/lin_tests.ml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,16 @@ end

module BT_domain = Lin_domain.Make(BConf)
module BT_thread = Lin_thread.Make(BConf)

let thread_tail =
if Sys.(ocaml_release.major,ocaml_release.minor) < (5,3)
then
(Printf.printf "Lin.thread Bytes tests disabled on OCaml 5.2 and earlier\n%!"; [])
else
[ BT_thread.neg_lin_test ~count:5000 ~name:"Lin Bytes test with Thread"; ]
;;
QCheck_base_runner.run_tests_main [
BT_domain.neg_lin_test ~count:5000 ~name:"Lin Bytes test with Domain";
BT_thread.neg_lin_test ~count:5000 ~name:"Lin Bytes test with Thread";
BT_domain.stress_test ~count:1000 ~name:"Lin Bytes stress test with Domain";
]
QCheck_base_runner.run_tests_main (
BT_domain.neg_lin_test ~count:5000 ~name:"Lin Bytes test with Domain"::
BT_domain.stress_test ~count:1000 ~name:"Lin Bytes stress test with Domain"::
thread_tail
)