aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_repository_TEST.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/e_repository_TEST.cc')
-rw-r--r--paludis/repositories/e/e_repository_TEST.cc206
1 files changed, 103 insertions, 103 deletions
diff --git a/paludis/repositories/e/e_repository_TEST.cc b/paludis/repositories/e/e_repository_TEST.cc
index 8e91ce3..669d6e2 100644
--- a/paludis/repositories/e/e_repository_TEST.cc
+++ b/paludis/repositories/e/e_repository_TEST.cc
@@ -495,7 +495,7 @@ namespace test_cases
TestMessageSuffix pass_suffix(stringify(pass), true);
std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat-one/pkg-one-1",
- UserPackageDepSpecOptions()))))]->begin());
+ &env, UserPackageDepSpecOptions()))))]->begin());
TEST_CHECK(id->short_description_key());
TEST_CHECK_EQUAL(id->short_description_key()->value(), "the-description");
@@ -540,7 +540,7 @@ namespace test_cases
const std::tr1::shared_ptr<const PackageID> id1(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat-one/pkg-one-1",
- UserPackageDepSpecOptions()))))]->begin());
+ &env, UserPackageDepSpecOptions()))))]->begin());
TEST_CHECK(id1->end_metadata() != id1->find_metadata("EAPI"));
TEST_CHECK(id1->short_description_key());
@@ -557,7 +557,7 @@ namespace test_cases
const std::tr1::shared_ptr<const PackageID> id2(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat-one/pkg-one-2",
- UserPackageDepSpecOptions()))))]->begin());
+ &env, UserPackageDepSpecOptions()))))]->begin());
TEST_CHECK(id2->end_metadata() != id2->find_metadata("EAPI"));
TEST_CHECK(id2->short_description_key());
@@ -608,7 +608,7 @@ namespace test_cases
const std::tr1::shared_ptr<const PackageID> id1(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat-one/stale-pkg-1",
- UserPackageDepSpecOptions()))))]->begin());
+ &env, UserPackageDepSpecOptions()))))]->begin());
TEST_CHECK(id1->end_metadata() != id1->find_metadata("EAPI"));
TEST_CHECK(id1->short_description_key());
@@ -621,7 +621,7 @@ namespace test_cases
const std::tr1::shared_ptr<const PackageID> id1(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat-one/stale-pkg-1",
- UserPackageDepSpecOptions()))))]->begin());
+ &env, UserPackageDepSpecOptions()))))]->begin());
TEST_CHECK(id1->end_metadata() != id1->find_metadata("EAPI"));
TEST_CHECK(id1->short_description_key());
@@ -668,7 +668,7 @@ namespace test_cases
const std::tr1::shared_ptr<const PackageID> id1(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat-one/pkg-two-1",
- UserPackageDepSpecOptions()))))]->begin());
+ &env, UserPackageDepSpecOptions()))))]->begin());
TEST_CHECK(id1->end_metadata() != id1->find_metadata("EAPI"));
TEST_CHECK_EQUAL((*std::tr1::static_pointer_cast<const erepository::ERepositoryID>(id1)->eapi())[k::name()], "UNKNOWN");
@@ -704,13 +704,13 @@ namespace test_cases
const std::tr1::shared_ptr<const PackageID> p1(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat-one/pkg-one-1",
- UserPackageDepSpecOptions()))))]->begin());
+ &env, UserPackageDepSpecOptions()))))]->begin());
const std::tr1::shared_ptr<const PackageID> p2(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat-two/pkg-two-1",
- UserPackageDepSpecOptions()))))]->begin());
+ &env, UserPackageDepSpecOptions()))))]->begin());
const std::tr1::shared_ptr<const PackageID> p4(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat-one/pkg-one-2",
- UserPackageDepSpecOptions()))))]->begin());
+ &env, UserPackageDepSpecOptions()))))]->begin());
TEST_CHECK(repo->query_use(UseFlagName("flag1"), *p1) == use_enabled);
TEST_CHECK(repo->query_use(UseFlagName("flag2"), *p1) == use_disabled);
@@ -762,29 +762,29 @@ namespace test_cases
TEST_CHECK((*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=category/package-1::test-repo-18",
- UserPackageDepSpecOptions()))))]->begin())->masked());
+ &env, UserPackageDepSpecOptions()))))]->begin())->masked());
TEST_CHECK((*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=category/package-2::test-repo-18",
- UserPackageDepSpecOptions()))))]->begin())->masked());
+ &env, UserPackageDepSpecOptions()))))]->begin())->masked());
TEST_CHECK(! (*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=category/package-3::test-repo-18",
- UserPackageDepSpecOptions()))))]->begin())->masked());
+ &env, UserPackageDepSpecOptions()))))]->begin())->masked());
TEST_CHECK(! (*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=category/package-4::test-repo-18",
- UserPackageDepSpecOptions()))))]->begin())->masked());
+ &env, UserPackageDepSpecOptions()))))]->begin())->masked());
TEST_CHECK((*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=category/package-1::test-repo-19",
- UserPackageDepSpecOptions()))))]->begin())->masked());
+ &env, UserPackageDepSpecOptions()))))]->begin())->masked());
TEST_CHECK(! (*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=category/package-2::test-repo-19",
- UserPackageDepSpecOptions()))))]->begin())->masked());
+ &env, UserPackageDepSpecOptions()))))]->begin())->masked());
TEST_CHECK((*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=category/package-3::test-repo-19",
- UserPackageDepSpecOptions()))))]->begin())->masked());
+ &env, UserPackageDepSpecOptions()))))]->begin())->masked());
TEST_CHECK(! (*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=category/package-4::test-repo-19",
- UserPackageDepSpecOptions()))))]->begin())->masked());
+ &env, UserPackageDepSpecOptions()))))]->begin())->masked());
}
} test_e_repository_repository_masks;
@@ -815,13 +815,13 @@ namespace test_cases
TEST_CHECK((*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/masked-0",
- UserPackageDepSpecOptions()))))]->begin())->masked());
+ &env, UserPackageDepSpecOptions()))))]->begin())->masked());
TEST_CHECK(! (*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/was_masked-0",
- UserPackageDepSpecOptions()))))]->begin())->masked());
+ &env, UserPackageDepSpecOptions()))))]->begin())->masked());
TEST_CHECK(! (*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/not_masked-0",
- UserPackageDepSpecOptions()))))]->begin())->masked());
+ &env, UserPackageDepSpecOptions()))))]->begin())->masked());
}
}
} test_e_repository_query_profile_masks;
@@ -849,15 +849,15 @@ namespace test_cases
TEST_CHECK((*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/was_masked-0",
- UserPackageDepSpecOptions()))))]->begin())->masked());
+ &env, UserPackageDepSpecOptions()))))]->begin())->masked());
repo->set_profile(repo->find_profile(repo->params().location / "profiles/profile/subprofile"));
TEST_CHECK(! (*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/was_masked-0",
- UserPackageDepSpecOptions()))))]->begin())->masked());
+ &env, UserPackageDepSpecOptions()))))]->begin())->masked());
repo->set_profile(repo->find_profile(repo->params().location / "profiles/profile"));
TEST_CHECK((*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/was_masked-0",
- UserPackageDepSpecOptions()))))]->begin())->masked());
+ &env, UserPackageDepSpecOptions()))))]->begin())->masked());
}
} test_e_repository_invalidate_masks;
@@ -1015,7 +1015,7 @@ namespace test_cases
TestMessageSuffix suffix("no files", true);
const std::tr1::shared_ptr<const PackageID> no_files_id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/no-files",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(no_files_id);
TEST_CHECK(no_files_id->short_description_key());
TEST_CHECK_EQUAL(no_files_id->short_description_key()->value(), "The Description");
@@ -1026,7 +1026,7 @@ namespace test_cases
TestMessageSuffix suffix("fetched files", true);
const std::tr1::shared_ptr<const PackageID> fetched_files_id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/fetched-files",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(fetched_files_id);
TEST_CHECK((FSEntry("e_repository_TEST_dir") / "distdir" / "already-fetched.txt").is_regular_file());
fetched_files_id->perform_action(action);
@@ -1038,7 +1038,7 @@ namespace test_cases
TEST_CHECK(! (FSEntry("e_repository_TEST_dir") / "distdir" / "fetchable-1.txt").is_regular_file());
const std::tr1::shared_ptr<const PackageID> fetchable_files_id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/fetchable-files",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(fetchable_files_id);
fetchable_files_id->perform_action(action);
TEST_CHECK((FSEntry("e_repository_TEST_dir") / "distdir" / "fetchable-1.txt").is_regular_file());
@@ -1049,7 +1049,7 @@ namespace test_cases
TEST_CHECK(! (FSEntry("e_repository_TEST_dir") / "distdir" / "arrowed.txt").is_regular_file());
const std::tr1::shared_ptr<const PackageID> arrow_files_id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/arrow-files",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(arrow_files_id);
arrow_files_id->perform_action(action);
TEST_CHECK((FSEntry("e_repository_TEST_dir") / "distdir" / "arrowed.txt").is_regular_file());
@@ -1059,7 +1059,7 @@ namespace test_cases
TestMessageSuffix suffix("unfetchable files", true);
const std::tr1::shared_ptr<const PackageID> unfetchable_files_id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/unfetchable-files",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(unfetchable_files_id);
TEST_CHECK_THROWS(unfetchable_files_id->perform_action(action), FetchActionError);
}
@@ -1067,7 +1067,7 @@ namespace test_cases
{
const std::tr1::shared_ptr<const PackageID> no_files_restricted_id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/no-files-restricted",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(no_files_restricted_id);
no_files_restricted_id->perform_action(action);
}
@@ -1075,7 +1075,7 @@ namespace test_cases
{
const std::tr1::shared_ptr<const PackageID> fetched_files_restricted_id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/fetched-files-restricted",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(fetched_files_restricted_id);
fetched_files_restricted_id->perform_action(action);
}
@@ -1083,7 +1083,7 @@ namespace test_cases
{
const std::tr1::shared_ptr<const PackageID> fetchable_files_restricted_id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/fetchable-files-restricted",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(fetchable_files_restricted_id);
TEST_CHECK_THROWS(fetchable_files_restricted_id->perform_action(action), FetchActionError);
}
@@ -1115,7 +1115,7 @@ namespace test_cases
const std::tr1::shared_ptr<const PackageID> id(*env[selection::AllVersionsSorted(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("category/package",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
repo->make_manifest(id->name());
id->perform_action(action);
@@ -1176,7 +1176,7 @@ namespace test_cases
{
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=virtual/virtual-pretend-installed-0",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
}
@@ -1184,7 +1184,7 @@ namespace test_cases
TestMessageSuffix suffix("in-ebuild die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/in-ebuild-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1193,7 +1193,7 @@ namespace test_cases
TestMessageSuffix suffix("in-subshell die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/in-subshell-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1202,7 +1202,7 @@ namespace test_cases
TestMessageSuffix suffix("success", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/success",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1211,7 +1211,7 @@ namespace test_cases
TestMessageSuffix suffix("unpack die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/unpack-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1220,7 +1220,7 @@ namespace test_cases
TestMessageSuffix suffix("econf die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/econf-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1229,7 +1229,7 @@ namespace test_cases
TestMessageSuffix suffix("emake fail", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/emake-fail",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1238,7 +1238,7 @@ namespace test_cases
TestMessageSuffix suffix("emake die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/emake-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1247,7 +1247,7 @@ namespace test_cases
TestMessageSuffix suffix("einstall die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/einstall-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1256,7 +1256,7 @@ namespace test_cases
TestMessageSuffix suffix("keepdir die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/keepdir-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1265,7 +1265,7 @@ namespace test_cases
TestMessageSuffix suffix("dobin fail", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/dobin-fail",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1274,7 +1274,7 @@ namespace test_cases
TestMessageSuffix suffix("dobin die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/dobin-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1283,7 +1283,7 @@ namespace test_cases
TestMessageSuffix suffix("fperms fail", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/fperms-fail",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1292,7 +1292,7 @@ namespace test_cases
TestMessageSuffix suffix("fperms die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/fperms-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1301,7 +1301,7 @@ namespace test_cases
TestMessageSuffix suffix("econf source 0", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/econf-source-0",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_EQUAL(visitor_cast<const MetadataValueKey<std::string> >(**id->find_metadata("EAPI"))->value(), "0");
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
@@ -1311,7 +1311,7 @@ namespace test_cases
TestMessageSuffix suffix("best version", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/best-version-0",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1320,7 +1320,7 @@ namespace test_cases
TestMessageSuffix suffix("has version", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/has-version-0",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1329,7 +1329,7 @@ namespace test_cases
TestMessageSuffix suffix("match", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/match-0",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1338,7 +1338,7 @@ namespace test_cases
TestMessageSuffix suffix("vars", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/vars-0",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1347,7 +1347,7 @@ namespace test_cases
TestMessageSuffix suffix("expand vars", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/expand-vars-0",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1400,7 +1400,7 @@ namespace test_cases
TestMessageSuffix suffix("econf source 1", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/econf-source-1",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_EQUAL(visitor_cast<const MetadataValueKey<std::string> >(**id->find_metadata("EAPI"))->value(), "1");
id->perform_action(action);
@@ -1410,7 +1410,7 @@ namespace test_cases
TestMessageSuffix suffix("dosym success 1", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/dosym-success-1",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_EQUAL(visitor_cast<const MetadataValueKey<std::string> >(**id->find_metadata("EAPI"))->value(), "1");
id->perform_action(action);
@@ -1464,7 +1464,7 @@ namespace test_cases
TestMessageSuffix suffix("econf source kdebuild-1", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/econf-source-kdebuild-1",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_EQUAL(visitor_cast<const MetadataValueKey<std::string> >(**id->find_metadata("EAPI"))->value(), "kdebuild-1");
id->perform_action(action);
@@ -1474,7 +1474,7 @@ namespace test_cases
TestMessageSuffix suffix("banned functions kdebuild-1", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/banned-functions-kdebuild-1",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_EQUAL(visitor_cast<const MetadataValueKey<std::string> >(**id->find_metadata("EAPI"))->value(), "kdebuild-1");
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
@@ -1484,7 +1484,7 @@ namespace test_cases
TestMessageSuffix suffix("banned vars kdebuild-1", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/banned-vars-kdebuild-1",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_EQUAL(visitor_cast<const MetadataValueKey<std::string> >(**id->find_metadata("EAPI"))->value(), "UNKNOWN");
}
@@ -1493,7 +1493,7 @@ namespace test_cases
TestMessageSuffix suffix("dosym success kdebuild-1", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/dosym-success-kdebuild-1",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_EQUAL(visitor_cast<const MetadataValueKey<std::string> >(**id->find_metadata("EAPI"))->value(), "kdebuild-1");
id->perform_action(action);
@@ -1503,7 +1503,7 @@ namespace test_cases
TestMessageSuffix suffix("dosym fail kdebuild-1", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/dosym-fail-kdebuild-1",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_EQUAL(visitor_cast<const MetadataValueKey<std::string> >(**id->find_metadata("EAPI"))->value(), "kdebuild-1");
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
@@ -1552,7 +1552,7 @@ namespace test_cases
TestMessageSuffix suffix("info success kdebuild-1", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/info-success-kdebuild-1",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_EQUAL(visitor_cast<const MetadataValueKey<std::string> >(**id->find_metadata("EAPI"))->value(), "kdebuild-1");
id->perform_action(action);
@@ -1562,7 +1562,7 @@ namespace test_cases
TestMessageSuffix suffix("info fail kdebuild-1", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/info-fail-kdebuild-1",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_EQUAL(visitor_cast<const MetadataValueKey<std::string> >(**id->find_metadata("EAPI"))->value(), "kdebuild-1");
TEST_CHECK_THROWS(id->perform_action(action), InfoActionError);
@@ -1624,7 +1624,7 @@ namespace test_cases
TestMessageSuffix suffix("in-ebuild die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/in-ebuild-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1633,7 +1633,7 @@ namespace test_cases
TestMessageSuffix suffix("in-subshell die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/in-subshell-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1642,7 +1642,7 @@ namespace test_cases
TestMessageSuffix suffix("success", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/success",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1651,7 +1651,7 @@ namespace test_cases
TestMessageSuffix suffix("expatch success", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/expatch-success",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1660,7 +1660,7 @@ namespace test_cases
TestMessageSuffix suffix("expatch die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/expatch-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1669,7 +1669,7 @@ namespace test_cases
TestMessageSuffix suffix("nonfatal expatch fail", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/nonfatal-expatch-fail",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1678,7 +1678,7 @@ namespace test_cases
TestMessageSuffix suffix("nonfatal expatch die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/nonfatal-expatch-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1687,7 +1687,7 @@ namespace test_cases
TestMessageSuffix suffix("unpack die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/unpack-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1696,7 +1696,7 @@ namespace test_cases
TestMessageSuffix suffix("nonfatal unpack fail", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/nonfatal-unpack-fail",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1705,7 +1705,7 @@ namespace test_cases
TestMessageSuffix suffix("nonfatal unpack die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/nonfatal-unpack-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1714,7 +1714,7 @@ namespace test_cases
TestMessageSuffix suffix("econf fail", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/econf-fail",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1723,7 +1723,7 @@ namespace test_cases
TestMessageSuffix suffix("nonfatal econf", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/nonfatal-econf",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1732,7 +1732,7 @@ namespace test_cases
TestMessageSuffix suffix("nonfatal econf die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/nonfatal-econf-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1741,7 +1741,7 @@ namespace test_cases
TestMessageSuffix suffix("emake fail", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/emake-fail",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1750,7 +1750,7 @@ namespace test_cases
TestMessageSuffix suffix("nonfatal emake", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/nonfatal-emake",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1759,7 +1759,7 @@ namespace test_cases
TestMessageSuffix suffix("nonfatal emake die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/nonfatal-emake-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1768,7 +1768,7 @@ namespace test_cases
TestMessageSuffix suffix("einstall fail", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/einstall-fail",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1777,7 +1777,7 @@ namespace test_cases
TestMessageSuffix suffix("nonfatal einstall", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/nonfatal-einstall",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1786,7 +1786,7 @@ namespace test_cases
TestMessageSuffix suffix("nonfatal einstall die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/nonfatal-einstall-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1795,7 +1795,7 @@ namespace test_cases
TestMessageSuffix suffix("keepdir success", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/keepdir-success",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1804,7 +1804,7 @@ namespace test_cases
TestMessageSuffix suffix("keepdir fail", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/keepdir-fail",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1813,7 +1813,7 @@ namespace test_cases
TestMessageSuffix suffix("nonfatal keepdir", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/nonfatal-keepdir",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1822,7 +1822,7 @@ namespace test_cases
TestMessageSuffix suffix("nonfatal keepdir die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/nonfatal-keepdir-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1831,7 +1831,7 @@ namespace test_cases
TestMessageSuffix suffix("dobin success", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/dobin-success",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1840,7 +1840,7 @@ namespace test_cases
TestMessageSuffix suffix("dobin fail", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/dobin-fail",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1849,7 +1849,7 @@ namespace test_cases
TestMessageSuffix suffix("nonfatal dobin success", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/nonfatal-dobin-success",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1858,7 +1858,7 @@ namespace test_cases
TestMessageSuffix suffix("nonfatal dobin fail", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/nonfatal-dobin-fail",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1867,7 +1867,7 @@ namespace test_cases
TestMessageSuffix suffix("nonfatal dobin die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/nonfatal-dobin-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1876,7 +1876,7 @@ namespace test_cases
TestMessageSuffix suffix("fperms success", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/fperms-success",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1885,7 +1885,7 @@ namespace test_cases
TestMessageSuffix suffix("fperms fail", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/fperms-fail",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1894,7 +1894,7 @@ namespace test_cases
TestMessageSuffix suffix("nonfatal fperms success", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/nonfatal-fperms-success",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1903,7 +1903,7 @@ namespace test_cases
TestMessageSuffix suffix("nonfatal fperms fail", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/nonfatal-fperms-fail",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1912,7 +1912,7 @@ namespace test_cases
TestMessageSuffix suffix("nonfatal fperms die", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/nonfatal-fperms-die",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1921,7 +1921,7 @@ namespace test_cases
TestMessageSuffix suffix("best version", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/best-version-0",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1930,7 +1930,7 @@ namespace test_cases
TestMessageSuffix suffix("has version", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/has-version-0",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1939,7 +1939,7 @@ namespace test_cases
TestMessageSuffix suffix("match", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/match-0",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1948,7 +1948,7 @@ namespace test_cases
TestMessageSuffix suffix("ever", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/ever-1.3",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK(id->short_description_key());
TEST_CHECK_EQUAL(id->short_description_key()->value(), "The Description");
@@ -1959,7 +1959,7 @@ namespace test_cases
TestMessageSuffix suffix("econf phase", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/econf-phase-0",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
TEST_CHECK_THROWS(id->perform_action(action), InstallActionError);
}
@@ -1968,7 +1968,7 @@ namespace test_cases
TestMessageSuffix suffix("econf vars", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/econf-vars-0",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -1977,7 +1977,7 @@ namespace test_cases
TestMessageSuffix suffix("expand vars", true);
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/expand-vars-0",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);
}
@@ -2004,7 +2004,7 @@ namespace test_cases
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("category/package",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
StringifyFormatter ff;
@@ -2078,7 +2078,7 @@ namespace test_cases
const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("cat/pkg",
- UserPackageDepSpecOptions()))))]->last());
+ &env, UserPackageDepSpecOptions()))))]->last());
TEST_CHECK(id);
id->perform_action(action);