Skip to content

Commit c4aa545

Browse files
committed
Limit some tests to specific ocaml versions
To ensure we pass on older ocaml versions.
1 parent db50f76 commit c4aa545

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

test/xref2/dune

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
(cram
1313
(deps %{bin:odoc} %{bin:odoc_print} %{bin:compile}))
1414

15+
(cram
16+
(applies_to module_type_of_size hidden_modules)
17+
(enabled_if
18+
(>= %{ocaml_version} 4.04.0)))
19+
1520
; 4.06.0 and above
1621

1722
(cram
@@ -29,7 +34,13 @@
2934
; 4.08.0 and above
3035

3136
(cram
32-
(applies_to github_issue_587 shadow github_issue_1066)
37+
(applies_to
38+
github_issue_587
39+
shadow
40+
shadow2
41+
shadow4
42+
expansion
43+
github_issue_1066)
3344
(enabled_if
3445
(>= %{ocaml_version} 4.08.0)))
3546

@@ -43,6 +54,6 @@
4354
; 4.14.0 and above
4455

4556
(cram
46-
(applies_to lookup_def)
57+
(applies_to lookup_def shadow3)
4758
(enabled_if
4859
(>= %{ocaml_version} 4.14.0)))

0 commit comments

Comments
 (0)