Skip to content

Commit

Permalink
Merge pull request #326 from shym/skip-out-mac
Browse files Browse the repository at this point in the history
Disable the negative Out_channel tests on macOS
  • Loading branch information
jmid committed Apr 15, 2023
2 parents 49cd0dd + aa3c57d commit 9095034
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/io/dune
Expand Up @@ -23,7 +23,9 @@
(package multicoretests)
;(flags (:standard -w -27))
(libraries qcheck-lin.domain lin_tests_dsl_common_io)
(action (run %{test} --verbose))
(action
(setenv OCAML_SYSTEM %{system}
(run %{test} --verbose)))
)

(test
Expand Down
12 changes: 9 additions & 3 deletions src/io/lin_tests_dsl_domain.ml
Expand Up @@ -7,8 +7,14 @@ open Lin_tests_dsl_common_io.Lin_tests_dsl_common
module IC_domain = Lin_domain.Make(ICConf)
module OC_domain = Lin_domain.Make(OCConf)

let _ =
QCheck_base_runner.run_tests_main [
IC_domain.neg_lin_test ~count:1000 ~name:"Lin DSL In_channel test with Domain";
let tests =
IC_domain.neg_lin_test ~count:1000 ~name:"Lin DSL In_channel test with Domain" ::
if Sys.getenv_opt "OCAML_SYSTEM" = Some "macosx"
then (
Printf.printf "Lin DSL Out_channel test with Domain disabled under macOS\n\n%!";
[]
) else [
OC_domain.neg_lin_test ~count:1000 ~name:"Lin DSL Out_channel test with Domain";
]

let _ = QCheck_base_runner.run_tests_main tests

0 comments on commit 9095034

Please sign in to comment.