X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/011188e3920f21e6883c2dab956b3d4fb4e8cbfa..c5306b16a34a6f82cb53668287267e4de3065ea1:/test/libapt/gtest_runner.cc diff --git a/test/libapt/gtest_runner.cc b/test/libapt/gtest_runner.cc index 29f631326..73854d976 100644 --- a/test/libapt/gtest_runner.cc +++ b/test/libapt/gtest_runner.cc @@ -1,14 +1,15 @@ #include +#include +#include #include -#include - -bool ShowHelp(CommandLine &, CommandLine::DispatchWithHelp const *) {return false;} -std::vector GetCommands() {return {};} +#include int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); - int result = RUN_ALL_TESTS(); + if (pkgInitSystem(*_config, _system) == false) + return 42; + int const result = RUN_ALL_TESTS(); if (_error->empty() == false) { std::cerr << "The test generated the following global messages:" << std::endl;