aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/exndbam_repository_TEST.cc
diff options
context:
space:
mode:
authorAvatar Fernando J. Pereda <ferdy@ferdyx.org> 2008-08-30 12:06:45 +0000
committerAvatar Fernando J. Pereda <ferdy@ferdyx.org> 2008-09-02 16:17:54 +0000
commit73b0085bb9e598911b7651ef4aa40b6f1215f527 (patch)
treea58b80375b0d4b0df12a444721cde223b552a176 /paludis/repositories/e/exndbam_repository_TEST.cc
parentd98625c61d292ea5368d008fd88dcd9caf0019a1 (diff)
downloadpaludis-73b0085bb9e598911b7651ef4aa40b6f1215f527.tar.gz
paludis-73b0085bb9e598911b7651ef4aa40b6f1215f527.tar.xz
Pass and merge CONFIG_PROTECT from InstallAction to UninstallAction
Fixes: ticket:618
Diffstat (limited to 'paludis/repositories/e/exndbam_repository_TEST.cc')
-rw-r--r--paludis/repositories/e/exndbam_repository_TEST.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/paludis/repositories/e/exndbam_repository_TEST.cc b/paludis/repositories/e/exndbam_repository_TEST.cc
index bdc8476b7..28be5d34c 100644
--- a/paludis/repositories/e/exndbam_repository_TEST.cc
+++ b/paludis/repositories/e/exndbam_repository_TEST.cc
@@ -47,6 +47,10 @@ namespace
else
return mm->second;
}
+
+ void dummy_used_this_for_config_protect(const std::string &)
+ {
+ }
}
namespace test_cases
@@ -113,10 +117,13 @@ namespace test_cases
InstallAction install_action(make_named_values<InstallActionOptions>(
value_for<n::checks>(iaco_default),
value_for<n::debug_build>(iado_none),
- value_for<n::destination>(exndbam_repo)
+ value_for<n::destination>(exndbam_repo),
+ value_for<n::used_this_for_config_protect>(&dummy_used_this_for_config_protect)
));
- UninstallAction uninstall_action;
+ UninstallAction uninstall_action(make_named_values<UninstallActionOptions>(
+ value_for<n::config_protect>("")
+ ));
TEST_CHECK(exndbam_repo->package_ids(QualifiedPackageName("cat/pkg"))->empty());