Esempio n. 1
0
int main(int argc, char **argv) {
    
    ApplicationPtr app = Application::GetInstance();
    app->init(argc, argv, "data/config.ini");
    app->run();
    
    return 0;
    
}
Esempio n. 2
0
int main( const int argc, char** argv )
{
    setenv( "EQ_CONFIG_IATTR_ROBUSTNESS", "0", 1 /* overwrite */ );
    setenv( "CO_TIMEOUT", "1000", 1 /* overwrite */ );
    ApplicationPtr app = new Application;
    co::base::Clock clock;

    if( app->init( argc, argv, 0 ) && app->run( 0 ) && app->exit( ))
        return EXIT_SUCCESS;

    TEST( clock.getTime64() > 20000 );
    TEST( clock.getTime64() > 22000 );
    return EXIT_FAILURE;
}