aboutsummaryrefslogtreecommitdiff
path: root/paludis/filter_TEST.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-06 13:21:13 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-07 11:32:56 +0000
commit81ef7b0468950cade215c889d47143db21720695 (patch)
tree9fe89084961f1bbf5c35619f82d802e457443b8a /paludis/filter_TEST.cc
parent20cc98f89f0208619fa8845d784463f03a7c9234 (diff)
downloadpaludis-81ef7b0468950cade215c889d47143db21720695.tar.gz
paludis-81ef7b0468950cade215c889d47143db21720695.tar.xz
Pass ID to match_package
Diffstat (limited to 'paludis/filter_TEST.cc')
-rw-r--r--paludis/filter_TEST.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/paludis/filter_TEST.cc b/paludis/filter_TEST.cc
index 24a9d8acb..6069bc38b 100644
--- a/paludis/filter_TEST.cc
+++ b/paludis/filter_TEST.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008, 2009, 2010 Ciaran McCreesh
+ * Copyright (c) 2008, 2009, 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -31,6 +31,7 @@
#include <paludis/util/wrapped_forward_iterator.hh>
#include <paludis/util/indirect_iterator-impl.hh>
#include <paludis/util/make_named_values.hh>
+#include <paludis/util/make_null_shared_ptr.hh>
#include <test/test_runner.hh>
#include <test/test_framework.hh>
#include <test/test_concepts.hh>
@@ -96,7 +97,7 @@ namespace test_cases
std::shared_ptr<const PackageIDSequence> got_none(env[selection::AllVersionsSorted(
generator::Matches(parse_user_package_dep_spec("not/exist", &env,
- { }), { }) | filter)]);
+ { }), make_null_shared_ptr(), { }) | filter)]);
TEST_CHECK(bool(got_none));
TEST_CHECK_EQUAL(join(indirect_iterator(got_none->begin()), indirect_iterator(got_none->end()), ", "), "");
}
@@ -222,7 +223,7 @@ namespace test_cases
{
MatchesFilterTestCase() :
FilterTestCaseBase("matches", filter::Matches(parse_user_package_dep_spec("cat/a",
- &env, { }), { }))
+ &env, { }), make_null_shared_ptr(), { }))
{
}
@@ -240,7 +241,7 @@ namespace test_cases
{
MatchesCatWildcardFilterTestCase() :
FilterTestCaseBase("matches cat wildcard", filter::Matches(parse_user_package_dep_spec("*/a",
- &env, { updso_allow_wildcards }), { }))
+ &env, { updso_allow_wildcards }), make_null_shared_ptr(), { }))
{
}
@@ -258,7 +259,7 @@ namespace test_cases
{
MatchesPkgWildcardFilterTestCase() :
FilterTestCaseBase("matches pkg wildcard", filter::Matches(parse_user_package_dep_spec("cat/*",
- &env, { updso_allow_wildcards }), { }))
+ &env, { updso_allow_wildcards }), make_null_shared_ptr(), { }))
{
}
@@ -279,7 +280,7 @@ namespace test_cases
MatchesAllWildcardFilterTestCase() :
FilterTestCaseBase("matches all wildcard", filter::Matches(
parse_user_package_dep_spec(">=*/*-2",
- &env, { updso_allow_wildcards }), { }))
+ &env, { updso_allow_wildcards }), make_null_shared_ptr(), { }))
{
}