X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/c3ccac9232c2684b15f75fa8622a9a290aeca123..422a2eba84361a8dfd84b549c13037512779c572:/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;