int main(int argc, char *argv[]) { int retval = 0; int i; for (i = 1; argv[i]; i++) { if (strcmp(argv[i], "-v") == 0) tstflags |= tst_verbatim; else if (strcmp(argv[i], "-a") == 0) tstflags |= tst_abort; else usage(1); } #if HAVE_OPEN_C tstflags |= tst_verbatim; #endif retval |= test_alloc(); retval |= test_lock(); retval |= test_strdupcat(); retval |= test_sprintf("%s.%s", "foo", "bar"); retval |= test_strlst(); retval |= test_vectors(); retval |= test_auto(); return retval; }
int main(){ printf("Test slist heights\n"); test_slist_heights(); printf("Test prgn\n"); test_prng(); printf("test_lock\n"); test_lock(); printf("test1\n"); test1(); printf("test2\n"); test2(); printf("test3\n"); test3(); printf("test4\n"); test4(); printf("test6\n"); test6(); printf("test7\n"); test7(); printf("test8\n"); test8(); printf("test9\n"); test9(); printf("test10\n"); test10(); printf("test11\n"); test11(); printf("test12\n"); test12(); return 0; }
int main(int argc, char* argv[]) { int ndim; MP_INIT(argc, argv); MP_PROCS(&nproc); MP_MYID(&me); if(me==0){ printf("ARMCI test program for lock(%d processes)\n",nproc); fflush(stdout); sleep(1); } ARMCI_Init(); test_lock(); MP_BARRIER(); if(me==0){printf("test passed\n"); fflush(stdout);} sleep(2); MP_BARRIER(); ARMCI_Finalize(); MP_FINALIZE(); return(0); }
static void single_thread_test(void) { test_lock(); test_invalid_params(); return; }
int main(int argc, char **argv) { test_create_dynamic() ; test_create_static() ; test_thread_create() ; test_yield() ; test_wait() ; test_broadcast() ; test_pc() ; test_pc_big() ; test_recursive() ; test_sem() ; test_lock() ; test_func_pointer() ; test_ready() ; test_kill() ; test_reset() ; return 0 ; }
int mtx_test(mtx_t * mtx) { return test_lock((int *)(&mtx->mtx_lock)); }
int test_pipe_lock(void *session) { return test_lock(& ((biterc_session_t *) session)->pipe_lock); }