Skip to content

Commit 29f9e96

Browse files
committed
Add missing cases unreached from the default test target
1 parent 919b045 commit 29f9e96

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

Diff for: middle_end/flambda2/tests/api_tests/extension_meet.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,5 +188,5 @@ let _ =
188188
let linkage_name = Compilation_unit.Name.of_string "camlTest" in
189189
Compilation_unit.create Compilation_unit.Prefix.empty linkage_name
190190
in
191-
Compilation_unit.set_current (Some comp_unit);
191+
Compilation_unit.set_current (Some comp_unit, Impl);
192192
test_double_recursion ()

Diff for: middle_end/flambda2/tests/meet_test.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ let test_meet_bottom_after_alias () =
260260

261261
let () =
262262
let comp_unit = "Meet_test" |> Compilation_unit.of_string in
263-
Compilation_unit.set_current (Some comp_unit);
263+
Compilation_unit.set_current (Some comp_unit, Impl);
264264
Format.eprintf "MEET CHAINS WITH TWO VARS@\n@.";
265265
test_meet_chains_two_vars ();
266266
Format.eprintf "@.MEET CHAINS WITH THREE VARS@\n@.";

Diff for: middle_end/flambda2/tests/tools/fldiff.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ let _ =
99
let modname1 =
1010
Parse_flambda.make_compilation_unit ~filename:file1 ~extension:".fl" ()
1111
in
12-
Compilation_unit.set_current (Some modname1);
12+
Compilation_unit.set_current (Some (modname1, Impl));
1313
Format.printf "%a@."
1414
(Compare.Comparison.print Flambda_unit.print)
1515
(Compare.flambda_units unit1 unit2)

Diff for: middle_end/flambda2/tests/tools/flexpect.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ end
3535
let run_expect_test ~get_module_info ~extension ~filename
3636
({ before; after = expected } : Fexpr.expect_test_spec) : Test_outcome.t =
3737
let comp_unit = Parse_flambda.make_compilation_unit ~extension ~filename () in
38-
Compilation_unit.set_current (Some comp_unit);
38+
Compilation_unit.set_current (Some (comp_unit, Impl));
3939
let before_fl = Fexpr_to_flambda.conv comp_unit before in
4040
check_invariants before_fl;
4141
let cmx_loader = Flambda_cmx.create_loader ~get_module_info in

Diff for: middle_end/flambda2/tests/tools/parseflambda.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let parse_flambda filename =
1515
let comp_unit =
1616
Parse_flambda.make_compilation_unit ~extension:".fl" ~filename ()
1717
in
18-
Compilation_unit.set_current comp_unit;
18+
Compilation_unit.set_current (comp_unit, Impl);
1919
Format.printf "%a@.@." Print_fexpr.flambda_unit unit;
2020
let fl2 = Fexpr_to_flambda.conv comp_unit unit in
2121
Format.printf "flambda:@.%a@.@." Flambda_unit.print fl2;

Diff for: middle_end/flambda2/tests/tools/roundtrip.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ let () =
3030
in
3131
(* Need to get this right or the conversion will complain about binding
3232
non-local symbols *)
33-
Compilation_unit.set_current (Some modname);
33+
Compilation_unit.set_current (Some (modname, Impl));
3434
let unit =
3535
match Parse_flambda.parse file with
3636
| Ok unit -> unit

0 commit comments

Comments
 (0)