summaryrefslogtreecommitdiff
path: root/test/libapt
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-09-28 14:43:39 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2012-09-28 14:43:39 +0200
commitd016834e39f668449385b1668240bdf905d62ade (patch)
treefa98cfface517e579dcda518c3820e1596035a00 /test/libapt
parent7735ad0500b6fefef03b2a3dc2a6843e82353e94 (diff)
add new ClearAll
Diffstat (limited to 'test/libapt')
-rw-r--r--test/libapt/configuration_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/libapt/configuration_test.cc b/test/libapt/configuration_test.cc
index 9a3e2c118..5ec48834a 100644
--- a/test/libapt/configuration_test.cc
+++ b/test/libapt/configuration_test.cc
@@ -80,6 +80,10 @@ int main(int argc,const char *argv[]) {
equals(Cnf.FindFile("Dir::State"), "/srv/sid/var/lib/apt");
equals(Cnf.FindFile("Dir::Aptitude::State"), "/srv/sid/var/lib/aptitude");
+ Cnf.Set("Moo::Bar", "1");
+ Cnf.ClearAll();
+ equals(Cnf.Find("Moo::Bar"), "");
+
//FIXME: Test for configuration file parsing;
// currently only integration/ tests test them implicitly