X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/070536e61cb203a9c74013be2a26322b582a9674..173fa882cf3396ab6d2a9be53c6ea23eda225a1d:/test/libapt/gtest_runner.cc?ds=sidebyside diff --git a/test/libapt/gtest_runner.cc b/test/libapt/gtest_runner.cc index 5823c55de..73854d976 100644 --- a/test/libapt/gtest_runner.cc +++ b/test/libapt/gtest_runner.cc @@ -1,8 +1,15 @@ #include + +#include +#include #include +#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;