]> git.saurik.com Git - apt.git/blobdiff - test/libapt/configuration_test.cc
merge patch from Daniel Hartwig to Show a error message if {,dist-}upgrade is used...
[apt.git] / test / libapt / configuration_test.cc
index 87d5699effffe4d06e7628a184b873b940ece442..2c974ee0a9b6271ea2128320bd1a95285ee5ccf6 100644 (file)
@@ -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