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

Update tests for OCaml 4.12. Thanks to Zbigniew Jędrzejewski-Szmek for the...

Update tests for OCaml 4.12. Thanks to Zbigniew Jędrzejewski-Szmek for the report. (Closes: #274)
parent cb447e68
No related branches found
No related tags found
No related merge requests found
Pipeline #288971 passed
#
# diffoscope: in-depth comparison of files, archives, and directories
#
# Copyright © 2018-2020 Chris Lamb <lamby@debian.org>
# Copyright © 2018-2021 Chris Lamb <lamby@debian.org>
#
# diffoscope is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
......@@ -56,7 +56,7 @@ def ocaml_version():
return out.decode("utf-8").split()[-1]
@skip_unless_tool_is_at_least("ocamlobjinfo", ocaml_version, "4.11.1")
@skip_unless_tool_is_at_least("ocamlobjinfo", ocaml_version, "4.12")
def test_identification(cmi1):
assert isinstance(cmi1, OcamlInterfaceFile)
......@@ -66,17 +66,17 @@ def differences(cmi1, cmi2):
return cmi1.compare(cmi2).details
@skip_unless_tool_is_at_least("ocamlobjinfo", ocaml_version, "4.11.1")
@skip_unless_tool_is_at_least("ocamlobjinfo", ocaml_version, "4.12")
def test_no_differences(cmi1):
difference = cmi1.compare(cmi1)
assert difference is None
@skip_unless_tool_is_at_least("ocamlobjinfo", ocaml_version, "4.11.1")
@skip_unless_tool_is_at_least("ocamlobjinfo", ocaml_version, "4.12")
def test_diff(differences):
assert_diff(differences[0], "ocaml_expected_diff")
@skip_unless_tool_is_at_least("ocamlobjinfo", ocaml_version, "4.11.1")
@skip_unless_tool_is_at_least("ocamlobjinfo", ocaml_version, "4.12")
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:
- 3e47d8b00458748ef1a9311764531b2c Test1
+ de7049745527b20997c517c338bb83cb Test2
c21c5d26416461b543321872a551ea0d Stdlib
3a3ca1838627f7762f49679ce0278ad1 CamlinternalFormatBasics
- 69a7449a2ee894ef85f1a4d8645e8051 Test1
+ 187969740b6c403b926a8d81613601ae Test2
4b04b4eda19aa722df365141895fb347 Stdlib
b6c6694955e10001aed267571104a961 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