aboutsummaryrefslogtreecommitdiff
path: root/paludis/dep_spec_TEST.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-06-14 20:03:26 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-06-15 10:42:03 +0100
commit7ce6f2a635664f48179ba58b18a24f041d467bc3 (patch)
tree33814a7743ba58a577ea8e996c8e8d777c0f5a57 /paludis/dep_spec_TEST.cc
parent1f5408648013aa4ea8cb70864888274b068402e3 (diff)
downloadpaludis-7ce6f2a635664f48179ba58b18a24f041d467bc3.tar.gz
paludis-7ce6f2a635664f48179ba58b18a24f041d467bc3.tar.xz
Boring API updates for parse_user_package_dep_spec changes (continued)
Diffstat (limited to 'paludis/dep_spec_TEST.cc')
-rw-r--r--paludis/dep_spec_TEST.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/paludis/dep_spec_TEST.cc b/paludis/dep_spec_TEST.cc
index ba228a714..6861fda28 100644
--- a/paludis/dep_spec_TEST.cc
+++ b/paludis/dep_spec_TEST.cc
@@ -28,6 +28,7 @@
#include <paludis/util/visitor-impl.hh>
#include <paludis/util/make_shared_ptr.hh>
#include <paludis/version_requirements.hh>
+#include <paludis/environments/test/test_environment.hh>
#include <test/test_framework.hh>
#include <test/test_runner.hh>
@@ -74,7 +75,9 @@ namespace test_cases
void run()
{
- PackageDepSpec a(parse_user_package_dep_spec("cat/pkg:1::repo[=1|>3.2][foo]", UserPackageDepSpecOptions()));
+ TestEnvironment env;
+ PackageDepSpec a(parse_user_package_dep_spec("cat/pkg:1::repo[=1|>3.2][foo]",
+ &env, UserPackageDepSpecOptions()));
std::tr1::shared_ptr<PackageDepSpec> b(std::tr1::static_pointer_cast<PackageDepSpec>(a.clone()));
TEST_CHECK_STRINGIFY_EQUAL(a, *b);