int main (int argc, char **argv) { gint i; GTest *test; #ifdef SYMBIAN g_log_set_handler (NULL, G_LOG_FLAG_FATAL| G_LOG_FLAG_RECURSION | G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING | G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_INFO | G_LOG_LEVEL_DEBUG, &mrtLogHandler, NULL); g_set_print_handler(mrtPrintHandler); #endif /*SYMBIAN*/ g_thread_init (NULL); //g_print ("START: %s\n", argv[0]); g_log_set_always_fatal (G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL | g_log_set_always_fatal (G_LOG_FATAL_MASK)); g_type_init (); test = g_object_new (G_TYPE_TEST, NULL); g_assert(test != NULL); for (i=0; i<1000; i++) { g_test_do_refcount (test); } //g_print ("\n"); #ifdef SYMBIAN testResultXml("objects2"); #endif /* EMULATOR */ return 0; }
int main (int argc, char **argv) { gint i; GTest *test; g_thread_init (NULL); g_print ("START: %s\n", argv[0]); g_log_set_always_fatal (G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL | g_log_set_always_fatal (G_LOG_FATAL_MASK)); g_type_init (); test = g_object_new (G_TYPE_TEST, NULL); for (i=0; i<100000000; i++) { g_test_do_refcount (test); } g_print ("\n"); return 0; }