int main (int argc, const char *argv[]) { km_exit = &test_exit; bzero(zeros, bufsize); return tinytest_main(argc, argv, kdm_tests); } /* ---------- end of function main ---------- */
int main() { const char a[] = {"sim"}; int r = tinytest_main( 1, (const char **) a, groups ); printf( "status: %i\n", r); return r; }
int main(int argc, const char **argv) { #ifdef _WIN32 WORD wVersionRequested; WSADATA wsaData; int err; wVersionRequested = MAKEWORD(2, 2); err = WSAStartup(wVersionRequested, &wsaData); #endif #ifndef _WIN32 if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) return 1; #endif #ifdef _WIN32 tinytest_skip(testgroups, "http/connection_retry"); #endif #ifndef _EVENT_DISABLE_THREAD_SUPPORT if (!getenv("EVENT_NO_DEBUG_LOCKS")) evthread_enable_lock_debuging(); #endif if (tinytest_main(argc,argv,testgroups)) return 1; return 0; }
int main (int argc, const char *argv[]) { int res; int our_argc = argc; const char **our_argv = argv; char *data_prefix; data_prefix = NULL; if (argc>1) { data_prefix = strdup(argv[1]); our_argc -= 1; our_argv += 1; } else { data_prefix = strdup("."); } assert(data_prefix != NULL); if (access(data_prefix, W_OK | X_OK | R_OK) != 0) { fprintf(stderr, "Could not access data prefix dir '%s'\n", data_prefix); free(data_prefix); exit(EXIT_FAILURE); } res = tinytest_main(our_argc, our_argv, axe_tests); free(data_prefix); return res; }
int main(int argc, char ** argv) { if (tinytest_main(argc, (const char **)argv, testgroups)) { return 1; } return 0; }
int main() { mp_stack_ctrl_init(); mp_stack_set_limit(10240); heap = malloc(HEAP_SIZE); upytest_set_heap(heap, (char*)heap + HEAP_SIZE); int r = tinytest_main(0, NULL, groups); printf("status: %d\n", r); return r; }
int main() { const char a[] = {"sim"}; mp_stack_ctrl_init(); mp_stack_set_limit(10240); heap = malloc(HEAP_SIZE); int r = tinytest_main(1, (const char **) a, groups); printf( "status: %i\n", r); return r; }
int main() { const char a[] = {"sim"}; mp_stack_set_limit(10240); void *heap = malloc(256 * 1024); gc_init(heap, (char*)heap + 256 * 1024); mp_init(); int r = tinytest_main(1, (const char **) a, groups); mp_deinit(); printf( "status: %i\n", r); return r; }
int main(int argc, const char **argv) { #ifdef _WIN32 WORD wVersionRequested; WSADATA wsaData; wVersionRequested = MAKEWORD(2, 2); (void) WSAStartup(wVersionRequested, &wsaData); #endif #ifndef _WIN32 if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) return 1; #endif #ifdef _WIN32 tinytest_skip(testgroups, "http/connection_retry"); tinytest_skip(testgroups, "http/https_connection_retry"); #endif #ifndef EVENT__DISABLE_THREAD_SUPPORT if (!getenv("EVENT_NO_DEBUG_LOCKS")) evthread_enable_lock_debugging(); #endif if (getenv("EVENT_DEBUG_MODE")) { event_enable_debug_mode(); libevent_tests_running_in_debug_mode = 1; } if (getenv("EVENT_DEBUG_LOGGING_ALL")) { event_enable_debug_logging(EVENT_DBG_ALL); } tinytest_set_aliases(testaliases); evutil_weakrand_seed_(&test_weakrand_state, 0); if (tinytest_main(argc,argv,testgroups)) return 1; libevent_global_shutdown(); return 0; }
int main(int c, const char **v) { /* Finally, just call tinytest_main(). It lets you specify verbose or quiet output with --verbose and --quiet. You can list specific tests: tinytest-demo demo/memcpy or use a ..-wildcard to select multiple tests with a common prefix: tinytest-demo demo/.. If you list no tests, you get them all by default, so that "tinytest-demo" and "tinytest-demo .." mean the same thing. */ return tinytest_main(c, v, groups); }
int main( int argc, char const *argv[] ) { int r = tinytest_main( argc, argv, groups ); printf( "status: %i\n", r ); return r; }
int main(int argc, const char *argv[]) { return tinytest_main(argc, argv, groups); }
int main( int argc, char const *argv[] ) { /* code */ return tinytest_main( argc, argv, groups ); }
int main(int argc, const char **argv){ return tinytest_main(argc,argv,test_groups); }