aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_repository_TEST_exheres_0.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-18 15:18:13 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-19 16:47:01 +0100
commit726d87775ad381f4c38bf336e02437a9f3bed037 (patch)
tree60ca8a4160de31c8c60bde3e9468a9966a320e86 /paludis/repositories/e/e_repository_TEST_exheres_0.cc
parent14cf12a2f28dec2a3f7b8b883838f4a801e1a4ce (diff)
downloadpaludis-726d87775ad381f4c38bf336e02437a9f3bed037.tar.gz
paludis-726d87775ad381f4c38bf336e02437a9f3bed037.tar.xz
expecting_tests
Diffstat (limited to 'paludis/repositories/e/e_repository_TEST_exheres_0.cc')
-rw-r--r--paludis/repositories/e/e_repository_TEST_exheres_0.cc24
1 files changed, 24 insertions, 0 deletions
diff --git a/paludis/repositories/e/e_repository_TEST_exheres_0.cc b/paludis/repositories/e/e_repository_TEST_exheres_0.cc
index 77f22574c..b170394ad 100644
--- a/paludis/repositories/e/e_repository_TEST_exheres_0.cc
+++ b/paludis/repositories/e/e_repository_TEST_exheres_0.cc
@@ -564,5 +564,29 @@ TEST(ERepository, InstallExheres0)
ASSERT_TRUE(bool(id));
EXPECT_THROW(id->perform_action(action), ActionFailedError);
}
+
+ {
+ const std::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
+ PackageDepSpec(parse_user_package_dep_spec("=cat/expecting-tests-enabled-1",
+ &env, { })), make_null_shared_ptr(), { }))]->last());
+ ASSERT_TRUE(bool(id));
+ id->perform_action(action);
+ }
+
+ {
+ const std::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
+ PackageDepSpec(parse_user_package_dep_spec("=cat/expecting-tests-disabled-1",
+ &env, { })), make_null_shared_ptr(), { }))]->last());
+ ASSERT_TRUE(bool(id));
+ id->perform_action(action);
+ }
+
+ {
+ const std::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
+ PackageDepSpec(parse_user_package_dep_spec("=cat/expecting-tests-none-1",
+ &env, { })), make_null_shared_ptr(), { }))]->last());
+ ASSERT_TRUE(bool(id));
+ EXPECT_THROW(id->perform_action(action), ActionFailedError);
+ }
}