diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-05-21 02:20:55 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-05-21 02:20:55 -0700 |
commit | fc3997483120e4003991dabd5d1e58b339579adb (patch) | |
tree | 411addc81110de9f61d1b51b5f1743da709688fd | |
parent | 8e09dda2ad6afe35bce7d374044a37fd91fafe6e (diff) | |
download | portage-fc3997483120e4003991dabd5d1e58b339579adb.tar.gz portage-fc3997483120e4003991dabd5d1e58b339579adb.tar.bz2 portage-fc3997483120e4003991dabd5d1e58b339579adb.zip |
test_merge_order: test unsolvable buildtime cycle
-rw-r--r-- | pym/portage/tests/resolver/test_merge_order.py | 15 |
1 files changed, 15 insertions, 0 deletions
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 |