X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/c3ccac9232c2684b15f75fa8622a9a290aeca123..98c934f2723d63d00908803ad47ab1359081ec2d:/test/interactive-helper/testdeb.cc diff --git a/test/interactive-helper/testdeb.cc b/test/interactive-helper/testdeb.cc index 89375af13..6aae9f563 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*/) {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;