From e188a1179dc1c7e57153d648616d7cd96fc0ed94 Mon Sep 17 00:00:00 2001 From: Jon Ludlam Date: Mon, 5 Feb 2024 15:49:10 +0000 Subject: [PATCH] Limit some tests to specific ocaml versions To ensure we pass on older ocaml versions. --- test/xref2/dune | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/xref2/dune b/test/xref2/dune index 0c51b5f096..64e3c5a2f4 100644 --- a/test/xref2/dune +++ b/test/xref2/dune @@ -12,6 +12,11 @@ (cram (deps %{bin:odoc} %{bin:odoc_print} %{bin:compile})) +(cram + (applies_to module_type_of_size hidden_modules) + (enabled_if + (>= %{ocaml_version} 4.04.0))) + ; 4.06.0 and above (cram @@ -29,7 +34,7 @@ ; 4.08.0 and above (cram - (applies_to github_issue_587 shadow) + (applies_to github_issue_587 shadow shadow2 shadow4 expansion) (enabled_if (>= %{ocaml_version} 4.08.0))) @@ -43,6 +48,6 @@ ; 4.14.0 and above (cram - (applies_to lookup_def) + (applies_to lookup_def shadow3) (enabled_if (>= %{ocaml_version} 4.14.0)))