diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-10-25 23:45:09 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-11-04 18:04:04 +0100 |
commit | 011188e3920f21e6883c2dab956b3d4fb4e8cbfa (patch) | |
tree | 9649094789cf2369d82758e24995feb2b0bed59c /test/libapt/gtest_runner.cc | |
parent | 2b0660b537581e9e65180e4cf1a94d763fd66847 (diff) |
generate commands array after config is loaded
This ensures that location strings loaded from a location specified via
configuration (Dir::Locale) effect the help messages for commands.
Git-Dch: Ignore
Diffstat (limited to 'test/libapt/gtest_runner.cc')
-rw-r--r-- | test/libapt/gtest_runner.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libapt/gtest_runner.cc b/test/libapt/gtest_runner.cc index 5823c55de..29f631326 100644 --- a/test/libapt/gtest_runner.cc +++ b/test/libapt/gtest_runner.cc @@ -1,5 +1,11 @@ #include <gtest/gtest.h> + #include <apt-pkg/error.h> +#include <apt-pkg/cmndline.h> + +bool ShowHelp(CommandLine &, CommandLine::DispatchWithHelp const *) {return false;} +std::vector<CommandLine::DispatchWithHelp> GetCommands() {return {};} + int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); int result = RUN_ALL_TESTS(); |