int main (int argc, char *const *argv) { int errorCount = 0; errorCount += testStartError (); errorCount += testStartStop (); errorCount += testExternalRun (); errorCount += testThread (); errorCount += testMultithread (); if (errorCount != 0) fprintf (stderr, "Error (code: %u)\n", errorCount); return errorCount != 0; /* 0 == pass */ }
SInt main( void ) { /* idp must be initlaized at the first of program */ ACT_ASSERT(idp::initialize(NULL, NULL) == IDE_SUCCESS); ACT_ASSERT(iduProperty::load() == IDE_SUCCESS); /* Test an instance */ testInstance(); #if 0 /* Test allocator */ testGlobalAllocator(); /* Test multithreaded allocation */ testMultithread(); #endif return IDE_SUCCESS; }