aboutsummaryrefslogtreecommitdiff
path: root/paludis/generator_TEST.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/generator_TEST.cc')
-rw-r--r--paludis/generator_TEST.cc16
1 files changed, 10 insertions, 6 deletions
diff --git a/paludis/generator_TEST.cc b/paludis/generator_TEST.cc
index 38fa634..4fc5de1 100644
--- a/paludis/generator_TEST.cc
+++ b/paludis/generator_TEST.cc
@@ -110,7 +110,8 @@ namespace test_cases
struct MatchesGeneratorTestCase : GeneratorTestCaseBase
{
MatchesGeneratorTestCase() :
- GeneratorTestCaseBase("matches", generator::Matches(parse_user_package_dep_spec("cat/a", UserPackageDepSpecOptions())))
+ GeneratorTestCaseBase("matches", generator::Matches(parse_user_package_dep_spec("cat/a",
+ &env, UserPackageDepSpecOptions())))
{
}
@@ -128,7 +129,7 @@ namespace test_cases
{
MatchesCatWildcardGeneratorTestCase() :
GeneratorTestCaseBase("matches cat wildcard", generator::Matches(parse_user_package_dep_spec("*/a",
- UserPackageDepSpecOptions() + updso_allow_wildcards)))
+ &env, UserPackageDepSpecOptions() + updso_allow_wildcards)))
{
}
@@ -146,7 +147,7 @@ namespace test_cases
{
MatchesPkgWildcardGeneratorTestCase() :
GeneratorTestCaseBase("matches pkg wildcard", generator::Matches(parse_user_package_dep_spec("cat/*",
- UserPackageDepSpecOptions() + updso_allow_wildcards)))
+ &env, UserPackageDepSpecOptions() + updso_allow_wildcards)))
{
}
@@ -166,7 +167,8 @@ namespace test_cases
{
MatchesAllWildcardGeneratorTestCase() :
GeneratorTestCaseBase("matches all wildcard", generator::Matches(
- parse_user_package_dep_spec(">=*/*-2", UserPackageDepSpecOptions() + updso_allow_wildcards)))
+ parse_user_package_dep_spec(">=*/*-2",
+ &env, UserPackageDepSpecOptions() + updso_allow_wildcards)))
{
}
@@ -273,8 +275,10 @@ namespace test_cases
{
IntersectionGeneratorTestCase() :
GeneratorTestCaseBase("intersection", generator::Intersection(
- generator::Matches(parse_user_package_dep_spec("*/a", UserPackageDepSpecOptions() + updso_allow_wildcards)),
- generator::Matches(parse_user_package_dep_spec("cat/*", UserPackageDepSpecOptions() + updso_allow_wildcards))
+ generator::Matches(parse_user_package_dep_spec("*/a",
+ &env, UserPackageDepSpecOptions() + updso_allow_wildcards)),
+ generator::Matches(parse_user_package_dep_spec("cat/*",
+ &env, UserPackageDepSpecOptions() + updso_allow_wildcards))
))
{
}