コード例 #1
0
ファイル: daemon_test.c プロジェクト: 1c0n/xbmc
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 */
}
コード例 #2
0
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;
}