summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-09-22 12:06:18 -0700
committerZac Medico <zmedico@gentoo.org>2011-09-22 12:06:18 -0700
commit64899b4f3bfcce72b487428d36b279454b298c88 (patch)
tree2c6a9397c4924fb8f5a3acddef7f887c9884d3e9
parent7369c82039a3ead20d015e1856fc3f4f78d31c22 (diff)
downloadportage-64899b4f3bfcce72b487428d36b279454b298c88.tar.gz
portage-64899b4f3bfcce72b487428d36b279454b298c88.tar.bz2
portage-64899b4f3bfcce72b487428d36b279454b298c88.zip
Test direct virtual circular dep for bug #384107.
-rw-r--r--pym/portage/tests/resolver/test_circular_choices.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/pym/portage/tests/resolver/test_circular_choices.py b/pym/portage/tests/resolver/test_circular_choices.py
index 57f76b96c..33b730627 100644
--- a/pym/portage/tests/resolver/test_circular_choices.py
+++ b/pym/portage/tests/resolver/test_circular_choices.py
@@ -30,3 +30,32 @@ class CircularChoicesTestCase(TestCase):
self.assertEqual(test_case.test_success, True, test_case.fail_msg)
finally:
playground.cleanup()
+
+class VirtualCircularChoicesTestCase(TestCase):
+ def testDirectVirtualCircularDependency(self):
+
+ # Bug #384107
+ self.todo = True
+
+ ebuilds = {
+ "dev-java/icedtea-6.1.10.3": { "SLOT" : "6", "DEPEND": "virtual/jdk" },
+ "dev-java/icedtea6-bin-1.10.3": {},
+ "virtual/jdk-1.6.0": { "SLOT" : "1.6", "RDEPEND": "|| ( dev-java/icedtea6-bin =dev-java/icedtea-6* )" },
+ }
+
+ test_cases = (
+ # Automatically pull in icedtea6-bin to solve a circular dep
+ ResolverPlaygroundTestCase(
+ ["dev-java/icedtea"],
+ mergelist = ["dev-java/icedtea6-bin-1.10.3", "virtual/jdk-1.6.0", "dev-java/icedtea-6.1.10.3"],
+ success = True,
+ ),
+ )
+
+ playground = ResolverPlayground(ebuilds=ebuilds)
+ try:
+ for test_case in test_cases:
+ playground.run_TestCase(test_case)
+ self.assertEqual(test_case.test_success, True, test_case.fail_msg)
+ finally:
+ playground.cleanup()