Exemple #1
0
int main(int argc, char **argv) {
  grpc_test_init(argc, argv);
  test_init_shutdown();
  test_create_and_destroy();
  test_record_and_get_stats();
  test_record_stats_on_unknown_op_id();
  test_record_stats_with_trace_store_uninitialized();
  return 0;
}
int
main(void)
{
    g_type_init();
    test_create_and_destroy();
    test_open_and_close();
    test_read_and_write();

    return 0;
}
Exemple #3
0
int main()
{
   printStart();
   printf("\n");
   

   printf("test_create_and_destroy...\n");
   test_create_and_destroy();


   printf("test_thread_pool_sanity...\n");
   test_thread_pool_sanity();


   printf("test_agressive, this might take a while...\n");
   test_agressive();


   printf("test_single_thread_many_tasks...\n");
   test_single_thread_many_tasks();


   printf("test_many_threads_single_task...\n");
   test_many_threads_single_task();


   printf("test_destroy_should_wait_for_tasks #1 (more threads then tasks)...\n");
   test_destroy_should_wait_for_tasks_1();


   printf("test_destroy_should_wait_for_tasks #2 (more tasks then threads)...\n");
   test_destroy_should_wait_for_tasks_2();


   printf("test_destroy_should_not_wait_for_tasks...\n");
   test_destroy_should_not_wait_for_tasks();


   printf("test_destroy_twice...\n");
   test_destroy_twice();


   printf("test_insert_task_after_destroy #1...\n");
   test_insert_task_after_destroy_1();


   printf("test_insert_task_after_destroy #2...\n");
   test_insert_task_after_destroy_2();
//*/

   printEnd();
   return 0;
}
Exemple #4
0
int main(int argc, char *argv[])
{
    int error_count;

    error_count = 0;
    printf("\n    testing pod_string\n");
    if (POD_STRING_TYPE != 0x61) {
        error_count++;
        printf("    POD_STRING_TYPE is not the expected value.\n");
        printf("        (expected 0x61, got 0x%x.)\n", POD_STRING_TYPE);
    }
    error_count += test_create_and_destroy();
    error_count += test_copy_string();
    error_count += test_compare_string();
    error_count += test_dup();
    error_count += test_append();

    return error_count;
}
Exemple #5
0
enum piglit_result
piglit_display(void)
{
	const unsigned w = 2;
	const unsigned h = 2;
	const unsigned cpp = 4;
	const unsigned char pixels[w * h* cpp];
	struct piglit_dma_buf *buf;
	unsigned stride;
	unsigned offset;
	int fd;
	enum piglit_result res;

	res = piglit_create_dma_buf(w, h, cpp, pixels, w * cpp,
				&buf, &fd, &stride, &offset);
	if (res != PIGLIT_PASS)
		return res;

	return test_create_and_destroy(w, h, buf, fd, stride, offset);
}