Skip to content

Commit a5eb5cf

Browse files
authored
makes tests compatible with 32-bit systems (#17)
We hit the maximum array size cap, which is less than 2M in 32-bit systems.
1 parent 7b7b0d2 commit a5eb5cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib_test/run_tests.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ let setup_log level =
4141

4242
let seed = [| 7; 8; 42; 56 |]
4343
let tasks = 64
44-
let task_size = 4096 * 1024
44+
let task_size = min (4096 * 1024) (Sys.max_array_length / 2)
4545
let delay = 4. *. atan 1.
4646

4747
let task (data,push) =

lwt-parallel.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ build: [
1717

1818
depends: [
1919
"base-unix"
20-
"dune"
20+
"dune" {>= "1.6"}
2121
"fmt"
2222
"logs"
2323
"lwt" {>= "2.7.0"}

0 commit comments

Comments
 (0)