Skip to content

Commit 4a9f59c

Browse files
committed
Limit some tests to specific ocaml versions
To ensure we pass on older ocaml versions.
1 parent 867f688 commit 4a9f59c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/xref2/dune

Lines changed: 7 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,7 @@
2934
; 4.08.0 and above
3035

3136
(cram
32-
(applies_to github_issue_587 shadow github_issue_1066)
37+
(applies_to github_issue_587 shadow shadow2 shadow4 expansion github_issue_1066)
3338
(enabled_if
3439
(>= %{ocaml_version} 4.08.0)))
3540

@@ -43,6 +48,6 @@
4348
; 4.14.0 and above
4449

4550
(cram
46-
(applies_to lookup_def)
51+
(applies_to lookup_def shadow3)
4752
(enabled_if
4853
(>= %{ocaml_version} 4.14.0)))

0 commit comments

Comments
 (0)