void Test_Comm_Layer::loop(void)
{
    if (!this->isVisible())
        return;

    if (ui->pushButton_echo_test->isChecked())
        do_echo_test();
}
Beispiel #2
0
// ========================== main
int
main(int argc, char ** argv)
{
    srand(time(NULL));

    g_lcm = lcm_create(NULL);
    if(!g_lcm)
    {
        info("Unable to initialize LCM\n");
        return 1;
    }

    if(!do_echo_test())
        goto failed;

    if(!do_lcmtest_primitives_t_test())
        goto failed;

    if(!do_lcmtest_primitives_list_t_test())
        goto failed;

    if(!do_lcmtest_node_t_test())
        goto failed;

    if(!do_lcmtest_multidim_array_t_test())
        goto failed;

    if(!do_lcmtest2_cross_package_t_test())
        goto failed;

    info("All tests passed.\n");
    lcm_destroy(g_lcm);
    return 0;
failed:
    info("failed\n");
    lcm_destroy(g_lcm);
    return 1;
}