DEF_TEST(TLS, reporter) { // TODO: Disabled for now to work around // http://code.google.com/p/skia/issues/detail?id=619 // ('flaky segfault in TLS test on Shuttle_Ubuntu12 buildbots') if( false ) test_threads(&thread_main); // Test to ensure that at thread destruction, TLS destructors // have been called. test_threads(&testTLSDestructor); REPORTER_ASSERT(reporter, 0 == gCounter); }
/* the main program... */ int main(int argc,char *argv[]) { char *srcdir; char fname[100]; struct sigaction act; /* build the name of the file */ srcdir=getenv("srcdir"); if (srcdir==NULL) srcdir="."; snprintf(fname,sizeof(fname),"%s/nslcd-test.conf",srcdir); fname[sizeof(fname)-1]='\0'; /* initialize configuration */ cfg_init(fname); /* partially initialize logging */ log_setdefaultloglevel(LOG_DEBUG); /* ignore SIGPIPE */ memset(&act,0,sizeof(struct sigaction)); act.sa_handler=SIG_IGN; sigemptyset(&act.sa_mask); act.sa_flags=SA_RESTART|SA_NOCLDSTOP; assert(sigaction(SIGPIPE,&act,NULL)==0); /* do tests */ test_search(); test_get(); test_get_values(); test_get_rdnvalues(); test_two_searches(); test_threads(); test_connections(); test_escape(); return 0; }
int main (int argc, char *argv[]) { test_threads (); init_bufs (); return f1 (1, 2); }
int main() #endif { do { int y, x; for(y = 0; y < 16; ++y){ printf("{"); for(x = 0; x < 16; ++x){ printf("%d, ", (2 * ( y / 8 ) + ( x / 8 ))); } printf("}\n"); } /* Print copyright information */ printf("Doubango Project\nCopyright (C) 2009 Mamadou Diop \n\n"); #if RUN_TEST_LISTS || RUN_TEST_ALL /* linked lists */ test_basic_list(); printf("\n\n"); test_complex_list(); printf("\n\n"); test_filtered_list(); printf("\n\n"); #endif #if RUN_TEST_HEAP || RUN_TEST_ALL /* heap */ test_heap(); printf("\n\n"); #endif #if RUN_TEST_STRINGS || RUN_TEST_ALL /* strings */ test_strings(); printf("\n\n"); #endif #if RUN_TEST_URL || RUN_TEST_ALL /* url */ test_url(); printf("\n\n"); #endif #if RUN_TEST_THREADS || RUN_TEST_ALL /* threads */ test_threads(); printf("\n\n"); #endif #if RUN_TEST_MUTEX || RUN_TEST_ALL /* mutex */ test_mutex(); printf("\n\n"); #endif #if RUN_TEST_CONDWAIT || RUN_TEST_ALL /* condwait */ test_condwait(); printf("\n\n"); #endif #if RUN_TEST_SEMAPHORE || RUN_TEST_ALL /* semaphore */ test_semaphore(); printf("\n\n"); #endif #if RUN_TEST_SAFEOBJECT || RUN_TEST_ALL /* safe object */ //test_safeobject(); printf("\n\n"); #endif #if RUN_TEST_OBJECT || RUN_TEST_ALL /* object */ //test_object(); printf("\n\n"); #endif #if RUN_TEST_PARAMS || RUN_TEST_ALL /* parameters */ test_params(); printf("\n\n"); #endif #if RUN_TEST_OPTIONS || RUN_TEST_ALL /* options */ test_options(); printf("\n\n"); #endif #if RUN_TEST_TIMER || RUN_TEST_ALL /* timer */ test_timer(); printf("\n\n"); #endif #if RUN_TEST_RUNNABLE || RUN_TEST_ALL /* test runnable. */ test_runnable(); printf("\n\n"); #endif #if RUN_TEST_BUFFER || RUN_TEST_ALL /* test buffer */ test_buffer(); #endif #if RUN_TEST_MD5 || RUN_TEST_ALL /* test md5 and hmac_md5 */ test_md5(); test_hmac_md5(); #endif #if RUN_TEST_SHA1 || RUN_TEST_ALL /* test sha1 and hmac_sha-1 */ test_sha1(); test_hmac_sha1(); #endif #if RUN_TEST_BASE64 || RUN_TEST_ALL /* test base64 encoding/decoding */ test_base64(); #endif #if RUN_TEST_UUID || RUN_TEST_ALL /* test fake UUID (version5) */ test_uuid(); #endif #if RUN_TEST_FSM || RUN_TEST_ALL /* test FSM */ test_fsm(); #endif } while(LOOP); getchar(); return 0; }
void TestThreads_Run_IMP(TestThreads *self, TestBatchRunner *runner) { TestBatchRunner_Plan(runner, (TestBatch*)self, 4); test_threads(runner); }