summaryrefslogtreecommitdiff
path: root/test/libapt
diff options
context:
space:
mode:
authorMichael Vogt <egon@debian-devbox>2012-10-17 10:29:52 +0200
committerMichael Vogt <mvo@debian.org>2013-08-15 09:39:27 +0200
commitd8a06f6e478323b2fa8573f6f885c0b16d403642 (patch)
tree6ef2d5f6d1f4ac3ad9600f5117d12b1eca19a377 /test/libapt
parentb9674b755d40b1394c397864d1fcd05ad58a88a2 (diff)
* lp:~mvo/apt/config-clear:
- support Configuration.Clear() for a clear of the entire configuration Conflicts: debian/changelog
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 87d5699ef..2c974ee0a 100644
--- a/test/libapt/configuration_test.cc
+++ b/test/libapt/configuration_test.cc
@@ -98,6 +98,10 @@ int main(int argc,const char *argv[]) {
equals(Cnf.FindDir("Dir::State"), "/rootdir/dev/null");
equals(Cnf.FindDir("Dir::State::lists"), "/rootdir/dev/null");
+ Cnf.Set("Moo::Bar", "1");
+ Cnf.Clear();
+ equals(Cnf.Find("Moo::Bar"), "");
+
//FIXME: Test for configuration file parsing;
// currently only integration/ tests test them implicitly