aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/exndbam_repository_TEST.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-10-09 22:42:41 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-10-10 00:08:16 +0100
commit678bce41252dbb269960750771667ccea5208c26 (patch)
tree104b4ff9037fe3326590b275d41fa6ed385074ee /paludis/repositories/e/exndbam_repository_TEST.cc
parent2dcdbcafdb4da4f80c43f18605aa60ccb5db9cf3 (diff)
downloadpaludis-678bce41252dbb269960750771667ccea5208c26.tar.gz
paludis-678bce41252dbb269960750771667ccea5208c26.tar.xz
Work around ebuilds assuming cwd is safe.
Fixes: Gentoo#240722
Diffstat (limited to 'paludis/repositories/e/exndbam_repository_TEST.cc')
-rw-r--r--paludis/repositories/e/exndbam_repository_TEST.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/paludis/repositories/e/exndbam_repository_TEST.cc b/paludis/repositories/e/exndbam_repository_TEST.cc
index 28be5d34c..37d7af9df 100644
--- a/paludis/repositories/e/exndbam_repository_TEST.cc
+++ b/paludis/repositories/e/exndbam_repository_TEST.cc
@@ -64,7 +64,8 @@ namespace test_cases
TestEnvironment env;
std::tr1::shared_ptr<Map<std::string, std::string> > keys(new Map<std::string, std::string>);
keys->insert("format", "exndbam");
- keys->insert("location", "exndbam_repository_TEST_dir/repo1");
+ keys->insert("location", stringify(FSEntry::cwd() / "exndbam_repository_TEST_dir" / "repo1"));
+ keys->insert("builddir", stringify(FSEntry::cwd() / "exndbam_repository_TEST_dir" / "build"));
std::tr1::shared_ptr<Repository> repo(ExndbamRepository::ExndbamRepository::repository_factory_create(&env,
std::tr1::bind(from_keys, keys, std::tr1::placeholders::_1)));
TEST_CHECK_STRINGIFY_EQUAL(repo->name(), "installed");
@@ -92,8 +93,8 @@ namespace test_cases
std::tr1::shared_ptr<Map<std::string, std::string> > keys(new Map<std::string, std::string>);
keys->insert("format", "ebuild");
keys->insert("names_cache", "/var/empty");
- keys->insert("location", "exndbam_repository_TEST_dir/postinsttest_src1");
- keys->insert("profiles", "exndbam_repository_TEST_dir/postinsttest_src1/profiles/profile");
+ keys->insert("location", stringify(FSEntry::cwd() / "exndbam_repository_TEST_dir" / "postinsttest_src1"));
+ keys->insert("profiles", stringify(FSEntry::cwd() / "exndbam_repository_TEST_dir" / "postinsttest_src1/profiles/profile"));
keys->insert("layout", "traditional");
keys->insert("eapi_when_unknown", "0");
keys->insert("eapi_when_unspecified", "0");
@@ -107,7 +108,7 @@ namespace test_cases
keys.reset(new Map<std::string, std::string>);
keys->insert("format", "exndbam");
- keys->insert("location", "exndbam_repository_TEST_dir/postinsttest");
+ keys->insert("location", stringify(FSEntry::cwd() / "exndbam_repository_TEST_dir" / "postinsttest"));
keys->insert("builddir", stringify(FSEntry::cwd() / "exndbam_repository_TEST_dir" / "build"));
keys->insert("root", stringify(FSEntry("exndbam_repository_TEST_dir/root").realpath()));
std::tr1::shared_ptr<Repository> exndbam_repo(ExndbamRepository::ExndbamRepository::repository_factory_create(&env,