| // SPDX-License-Identifier: LGPL-2.1-or-later | |
| namespace tests | |
| { | |
| static void initApplication() | |
| { | |
| if (App::Application::GetARGC() == 0) { | |
| constexpr int argc = 1; | |
| std::array<const char*, argc> argv {"FreeCAD"}; | |
| App::Application::Config()["ExeName"] = "FreeCAD"; | |
| App::Application::init(argc, const_cast<char**>(argv.data())); // NOLINT | |
| } | |
| } | |
| } // namespace tests | |