Skip to content
Snippets Groups Projects
Commit 47542775 authored by Chris Lamb's avatar Chris Lamb 👀
Browse files

Refresh OCaml test fixtures to support OCaml >= 4.08.1.

parent 1b36f8eb
No related branches found
No related tags found
No related merge requests found
Pipeline #84802 passed with stage
in 19 minutes and 59 seconds
......@@ -57,7 +57,7 @@ def ocaml_version():
return out.decode('utf-8').split()[-1]
@skip_unless_tool_is_at_least('ocamlobjinfo', ocaml_version, '4.05.0')
@skip_unless_tool_is_at_least('ocamlobjinfo', ocaml_version, '4.08.1')
def test_identification(cmi1):
assert isinstance(cmi1, OcamlInterfaceFile)
......@@ -67,18 +67,18 @@ def differences(cmi1, cmi2):
return cmi1.compare(cmi2).details
@skip_unless_tool_is_at_least('ocamlobjinfo', ocaml_version, '4.05.0')
@skip_unless_tool_is_at_least('ocamlobjinfo', ocaml_version, '4.08.1')
def test_no_differences(cmi1):
difference = cmi1.compare(cmi1)
assert difference is None
@skip_unless_tool_is_at_least('ocamlobjinfo', ocaml_version, '4.05.0')
@skip_unless_tool_is_at_least('ocamlobjinfo', ocaml_version, '4.08.1')
def test_diff(differences):
expected_diff = get_data('ocaml_expected_diff')
assert differences[0].unified_diff == expected_diff
@skip_unless_tool_is_at_least('ocamlobjinfo', ocaml_version, '4.05.0')
@skip_unless_tool_is_at_least('ocamlobjinfo', ocaml_version, '4.08.1')
def test_compare_non_existing(monkeypatch, cmi1):
assert_non_existing(monkeypatch, cmi1, has_null_source=False)
......@@ -2,7 +2,7 @@
-Unit name: Test1
+Unit name: Test2
Interfaces imported:
- b5f47409a5d1c32a864ea3d2fbed44db Test1
+ 9ee19396ca59dbe57206a9a88d98a7d5 Test2
07ea9e20ae94d62c35cfecbe7d66d3ea Pervasives
cbd5f2d6b649925222e1e9fb63b89db6 CamlinternalFormatBasics
- 4bf3070814d7fb8e8d365d95481f8cad Test1
+ 333f54d1aae1264e7ad64cbb437cbc4f Test2
ad45f251bbf98d3a0bf3b883546ecfc8 Stdlib
a2b1a9d869fd05813beb35645bd9cd94 CamlinternalFormatBasics
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment