summaryrefslogtreecommitdiff
path: root/test/conf_clear.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-08-17 11:38:45 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-08-17 11:38:45 +0200
commitec78b277382e27509a6dec91af4a7a524a422e0f (patch)
tree0bf1e6fe47a5082ecfa5f56e8535f67d24b95b0f /test/conf_clear.cc
parentd4882aa1e1a37b3092950180036676a930a5792f (diff)
parentd95dbc2ffd4acd5776ae6de300be320ef459325e (diff)
merged from lp:~donkult/apt/sid
Diffstat (limited to 'test/conf_clear.cc')
-rw-r--r--test/conf_clear.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/conf_clear.cc b/test/conf_clear.cc
deleted file mode 100644
index 259aa0f39..000000000
--- a/test/conf_clear.cc
+++ /dev/null
@@ -1,23 +0,0 @@
-#include <apt-pkg/configuration.h>
-#include <apt-pkg/error.h>
-
-using namespace std;
-
-int main(int argc,const char *argv[])
-{
- Configuration Cnf;
-
- cout << "adding elements" << endl;
- Cnf.Set("APT::Keep-Fds::",28);
- Cnf.Set("APT::Keep-Fds::",17);
- Cnf.Set("APT::Keep-Fds::",47);
- Cnf.Dump();
-
- cout << "Removing elements" << endl;
- Cnf.Clear("APT::Keep-Fds",17);
- Cnf.Clear("APT::Keep-Fds",28);
- Cnf.Clear("APT::Keep-Fds",47);
- Cnf.Dump();
-
- return 0;
-}