int main() { fprintf(stderr, "Begin test\n"); TestStruct(); TestVtable(); TestBranchStatistics(); TestMoveableHGLOBAL(); TestDynamicIAT(); TestStackVars(); TestMalloc(); TestCustomMalloc(); TestInvalidMemoryAccess(); TestPointerMembers(); TestTimeExpense(); fprintf(stderr, "End test\n"); return 1; }
int main(int argc, char *argv[]) { if (argc == 2) { g_num_test_loops = atoi(argv[1]); } TestTlsAndSync(); TestManyThreadsJoinable(); TestManyThreadsDetached(); TestSemaphores(); TestSemaphoreInitDestroy(); TestPthreadOnce(); TestRecursiveMutex(); TestErrorCheckingMutex(); TestTSD(); TestMalloc(); TestRealloc(); TestIntrinsics(); TestCondvar(); return g_errors; }