Skip to content

Commit 9222d77

Browse files
committed
Tests: explicitly disable effects
1 parent 89f175d commit 9222d77

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

benchmarks/run.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ let _ =
248248
"js_of_ocaml -q --target-env browser --debug mark-runtime-gen %s %s"
249249
opts
250250
(match effects with
251-
| `None -> ""
251+
| `None -> "--effects=disabled"
252252
| `Cps -> "--effects=cps"
253253
| `Double_translation -> "--effects=double-translation"))
254254
in

compiler/tests-compiler/util/util.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ let compile_to_javascript
279279
; (match effects with
280280
| `Double_translation -> [ "--effects=double-translation" ]
281281
| `Cps -> [ "--effects=cps" ]
282-
| `Disabled -> [])
282+
| `Disabled -> [ "--effects=disabled" ])
283283
; (if use_js_string
284284
then [ "--enable=use-js-string" ]
285285
else [ "--disable=use-js-string" ])

compiler/tests-dynlink-js/effects_flags.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ let () =
44
match l, major >= 5 with
55
| [ "with-effects-double-translation" ], true -> [ "--effects"; "double-translation" ]
66
| [ "with-effects" ], true -> [ "--effects"; "cps" ]
7-
| _, true -> []
8-
| _, false -> []
7+
| _ -> [ "--effects"; "disabled" ]
98
in
109
match Sys.argv |> Array.to_list |> List.tl with
1110
| "txt" :: rest -> List.iter print_endline (effects_flags rest)

0 commit comments

Comments
 (0)