aboutsummaryrefslogtreecommitdiff
path: root/paludis/package_database_TEST.cc
diff options
context:
space:
mode:
authorAvatar Aleksandar Petrinic <petrinic@gmail.com> 2010-12-07 15:14:20 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-07 14:20:20 +0000
commit738e455a3beaedf5252cb2354381f6facef8d62d (patch)
tree3010b466c749992cf81e9272a5ed74cac75dff02 /paludis/package_database_TEST.cc
parentceca955ba1c180ee7964adf8d451218b26b55a54 (diff)
downloadpaludis-738e455a3beaedf5252cb2354381f6facef8d62d.tar.gz
paludis-738e455a3beaedf5252cb2354381f6facef8d62d.tar.xz
PackageDatabase::fetch_unique_qualified_package_name disambiguate flag
Diffstat (limited to 'paludis/package_database_TEST.cc')
-rw-r--r--paludis/package_database_TEST.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/package_database_TEST.cc b/paludis/package_database_TEST.cc
index 63c6efd47..d2196cfa2 100644
--- a/paludis/package_database_TEST.cc
+++ b/paludis/package_database_TEST.cc
@@ -216,6 +216,9 @@ namespace test_cases
TEST_CHECK_STRINGIFY_EQUAL(p.fetch_unique_qualified_package_name(PackageNamePart("pkg-foo"),
filter::SupportsAction<InstallAction>()),
"avail-cat/pkg-foo");
+ TEST_CHECK_THROWS(p.fetch_unique_qualified_package_name(PackageNamePart("pkg-foo"),
+ filter::All(), false),
+ AmbiguousPackageNameError);
}
} package_database_disambiguate_test;