/** * @RDE_HEADER@ * Helper probe for the LtsCommandLineParser unit test: runs init() with the * real command line (QTest's main cannot forward CLI options) and reports * the resulting domain id. * $Id$ * $HeadURL$ * $Author$ */ #include #include #include int main(int argc, char **argv) { QCoreApplication app(argc, argv); LtsCommandLineParser::LtsCommandLineParser parser; parser.setUnitModuleTestMode(true); if (!parser.init(false)) { std::printf("INIT_FAIL\n"); return 1; } std::printf("DOMAINID=%d\n", parser.domainId()); return 0; }