From: Simon Marchi Date: Thu, 30 Jun 2022 17:15:24 +0000 (-0400) Subject: lib: increase maximal MIP version number X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=97b1a402864fc0dc45c72da7b1155a0ae498d00c;p=babeltrace.git lib: increase maximal MIP version number We are going to introduce MIP version 1, so adjust bt_get_maximal_mip_version accordingly. Change-Id: I6d698d252dbcd60c81b9355bc378e0a4fc7f425e Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/7313 Tested-by: jenkins Reviewed-by: Philippe Proulx Reviewed-on: https://review.lttng.org/c/babeltrace/+/7197 --- diff --git a/doc/api/libbabeltrace2/Doxyfile.in b/doc/api/libbabeltrace2/Doxyfile.in index 07a7c281..eb13e9e8 100644 --- a/doc/api/libbabeltrace2/Doxyfile.in +++ b/doc/api/libbabeltrace2/Doxyfile.in @@ -24,7 +24,7 @@ ALIASES = # Aliases: general ALIASES += bt_version_min_maj="2.0" ALIASES += bt_version="@PACKAGE_VERSION@" -ALIASES += bt_max_mip_version="0" +ALIASES += bt_max_mip_version="1" ALIASES += bt_name="Babeltrace 2" ALIASES += bt_name_version_min_maj="Babeltrace \bt_version_min_maj" ALIASES += bt_api="Babeltrace 2 C API" diff --git a/src/lib/graph/mip.c b/src/lib/graph/mip.c index 57bf7ef0..c74437bb 100644 --- a/src/lib/graph/mip.c +++ b/src/lib/graph/mip.c @@ -224,5 +224,5 @@ end: BT_EXPORT uint64_t bt_get_maximal_mip_version(void) { - return 0; + return 1; } diff --git a/tests/bindings/python/bt2/test_graph.py b/tests/bindings/python/bt2/test_graph.py index 579572ed..ae531cea 100644 --- a/tests/bindings/python/bt2/test_graph.py +++ b/tests/bindings/python/bt2/test_graph.py @@ -51,7 +51,7 @@ class GraphTestCase(unittest.TestCase): def test_create_unknown_mip_version(self): with self.assertRaisesRegex(ValueError, "unknown MIP version"): - bt2.Graph(1) + bt2.Graph(2) def test_default_interrupter(self): interrupter = self._graph.default_interrupter diff --git a/tests/bindings/python/bt2/test_mip.py b/tests/bindings/python/bt2/test_mip.py index 873da22a..42007b6a 100644 --- a/tests/bindings/python/bt2/test_mip.py +++ b/tests/bindings/python/bt2/test_mip.py @@ -100,7 +100,7 @@ class MipTestCase(unittest.TestCase): bt2.get_greatest_operative_mip_version(descriptors, 12345) def test_get_maximal_mip_version(self): - self.assertEqual(bt2.get_maximal_mip_version(), 0) + self.assertEqual(bt2.get_maximal_mip_version(), 1) if __name__ == "__main__":