From fc3997483120e4003991dabd5d1e58b339579adb Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 21 May 2011 02:20:55 -0700 Subject: [PATCH] test_merge_order: test unsolvable buildtime cycle --- pym/portage/tests/resolver/test_merge_order.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pym/portage/tests/resolver/test_merge_order.py b/pym/portage/tests/resolver/test_merge_order.py index df0c3f13b..be41f8280 100644 --- a/pym/portage/tests/resolver/test_merge_order.py +++ b/pym/portage/tests/resolver/test_merge_order.py @@ -29,6 +29,15 @@ class MergeOrderTestCase(TestCase): "app-misc/circ-buildtime-c-1": { "DEPEND": "app-misc/circ-buildtime-a", }, + "app-misc/circ-buildtime-unsolvable-a-1": { + "RDEPEND": "app-misc/circ-buildtime-unsolvable-b", + }, + "app-misc/circ-buildtime-unsolvable-b-1": { + "RDEPEND": "app-misc/circ-buildtime-unsolvable-c", + }, + "app-misc/circ-buildtime-unsolvable-c-1": { + "DEPEND": "app-misc/circ-buildtime-unsolvable-a", + }, "app-misc/circ-post-runtime-a-1": { "PDEPEND": "app-misc/circ-post-runtime-b", }, @@ -83,6 +92,12 @@ class MergeOrderTestCase(TestCase): success = True, ambigous_merge_order = True, mergelist = [("app-misc/circ-runtime-c-1", "app-misc/circ-runtime-b-1", "app-misc/circ-runtime-a-1"), "app-misc/some-app-a-1"]), + # Test unsolvable circular dep that is RDEPEND in one + # direction and DEPEND in the other. + ResolverPlaygroundTestCase( + ["app-misc/circ-buildtime-unsolvable-a"], + success = False, + circular_dependency_solutions = {}), # Test optimal merge order for a circular dep that is # RDEPEND in one direction and DEPEND in the other. # This requires an installed instance of the DEPEND -- 2.26.2