X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/c3ccac9232c2684b15f75fa8622a9a290aeca123..bd4a8f51649ee37291c6e07310104a94f4f5fbed:/test/interactive-helper/testdeb.cc diff --git a/test/interactive-helper/testdeb.cc b/test/interactive-helper/testdeb.cc index 89375af13..69e1ffe0b 100644 --- a/test/interactive-helper/testdeb.cc +++ b/test/interactive-helper/testdeb.cc @@ -1,12 +1,19 @@ +#include + #include #include #include #include +#include +#include + +#include +#include class NullStream : public pkgDirStream { public: - virtual bool DoItem(Item &Itm,int &Fd) {return true;}; + virtual bool DoItem(Item &/*Itm*/, int &/*Fd*/) APT_OVERRIDE {return true;}; }; static bool Test(const char *File) @@ -33,6 +40,11 @@ static bool Test(const char *File) int main(int argc, const char *argv[]) { + if (argc != 2) { + std::cout << "One parameter expected - given " << argc << std::endl; + return 100; + } + Test(argv[1]); _error->DumpErrors(); return 0;