-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
6 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
(* ********************************************************************** *) | ||
(* Tests of in and out channels *) | ||
(* Tests of In_channels *) | ||
(* ********************************************************************** *) | ||
|
||
module IC_domain = Lin_domain.Make(Lin_tests_spec_io.ICConf) | ||
module OC_domain = Lin_domain.Make(Lin_tests_spec_io.OCConf) | ||
|
||
let tests = | ||
IC_domain.neg_lin_test ~count:1000 ~name:"Lin In_channel test with Domain" :: | ||
if Sys.getenv_opt "OCAML_SYSTEM" = Some "macosx" | ||
then ( | ||
Printf.printf "Lin Out_channel test with Domain disabled under macOS\n\n%!"; | ||
[] | ||
) else [ | ||
OC_domain.neg_lin_test ~count:5000 ~name:"Lin Out_channel test with Domain"; | ||
let _ = | ||
QCheck_base_runner.run_tests_main [ | ||
IC_domain.neg_lin_test ~count:1000 ~name:"Lin In_channel test with Domain" | ||
] | ||
|
||
let _ = QCheck_base_runner.run_tests_main tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
(* ********************************************************************** *) | ||
(* Tests of in and out channels *) | ||
(* Tests of In_channels *) | ||
(* ********************************************************************** *) | ||
|
||
module IC_thread = Lin_thread.Make(Lin_tests_spec_io.ICConf) [@@alert "-experimental"] | ||
module OC_thread = Lin_thread.Make(Lin_tests_spec_io.OCConf) [@@alert "-experimental"] | ||
|
||
let _ = | ||
QCheck_base_runner.run_tests_main [ | ||
IC_thread.neg_lin_test ~count:1000 ~name:"Lin In_channel test with Thread"; | ||
OC_thread.neg_lin_test ~count:1000 ~name:"Lin Out_channel test with Thread"; | ||
] |