int _tc_thread_delete()
{
	/* set tc cleanup */
	tc_cleanup(_tc_cleanup);
	thread_delete_init();

	return 25;
}
int _tc_semaphore_priority()
{
	/* set tc cleanup */
	tc_cleanup(_tc_cleanup);
	semaphore_priority_init();

	return 50;
}
Example #3
0
int _tc_thread_yield()
{
	/* 设置TestCase清理回调函数 */
	tc_cleanup(_tc_cleanup);
	thread_yield_init();

	/* 返回TestCase运行的最长时间 */
	return 30;
}
int _tc_thread_static_simple()
{
	/* 设置TestCase清理回调函数 */
	tc_cleanup(_tc_cleanup);
	thread_static_simple_init();

	/* 返回TestCase运行的最长时间 */
	return 100;
}
Example #5
0
int _tc_thread_suspend()
{
	/* 设置TestCase清理回调函数 */
	tc_cleanup(_tc_cleanup);
	thread_suspend_init();

	/* 返回TestCase运行的最长时间 */
	return 100;
}
Example #6
0
int _tc_test_spi_bus_open_close(void)
{
    tc_cleanup(_tc_cleanup);

    if(RT_EOK != test_spi_bus_open_close()) {
        tc_stat(TC_STAT_FAILED);
    }
    return 100;
}
Example #7
0
int _tc_test_spi_bus_register(void)
{
    tc_cleanup(_tc_cleanup);

    if(RT_EOK != test_spi_bus_register()) {
        tc_stat(TC_STAT_FAILED);
    }
    return 100;
}
Example #8
0
int _tc_semaphore_static()
{
	/* 设置TestCase清理回调函数 */
	tc_cleanup(_tc_cleanup);
	semaphore_static_init();

	/* 返回TestCase运行的最长时间 */
	return 100;
}
int _tc_mempool_simple()
{
    /* 设置TestCase清理回调函数 */
    tc_cleanup(_tc_cleanup);
    mempool_simple_init();

    /* 返回TestCase运行的最长时间 */
    return 100;
}
int _tc_thread_resume()
{
    /* 设置TestCase清理回调函数 */
    tc_cleanup(_tc_cleanup);
    thread_resume_init();

    /* 返回TestCase运行的最长时间 */
    return 25;
}
int _tc_semaphore_buffer_worker()
{
    /* 设置TestCase清理回调函数 */
    tc_cleanup(_tc_cleanup);
    semaphore_buffer_worker_init();

    /* 返回TestCase运行的最长时间 */
    return 100;
}
int _tc_timer_create()
{
    /* 设置TestCase清理回调函数 */
    tc_cleanup(_tc_cleanup);

    /* 执行定时器例程 */
    timer_create_init();

    /* 返回TestCase运行的最长时间 */
    return 100;
}
int _tc_thread_same_priority()
{
	t1_count = 0;
	t2_count = 0;

	/* set tc cleanup */
	tc_cleanup(_tc_cleanup);

	thread_same_priority_init();

	return 100;
}
Example #14
0
int _tc_timer_control()
{
	/* 设置TestCase清理回调函数 */
	tc_cleanup(_tc_cleanup);

	/* 执行定时器例程 */
	count = 0;
	timer_control_init();

	/* 返回TestCase运行的最长时间 */
	return 100;
}