void execute(void* io_stats) { CxxTestStats* stats = reinterpret_cast<CxxTestStats*>(io_stats); std::vector<const char*> module_list; VFS::find_test_modules(module_list); printk("Running Runtime CXX Tests: %ld\n", module_list.size()); g_ModulesStarted++; for (std::vector<const char*>::const_iterator i = module_list.begin(); i != module_list.end(); ++i) { g_ModulesStarted++; printk("\tRunning Runtime test: %s\n", *i); void* (*start_entry)(void*) = reinterpret_cast<void*(*)(void*)>( vfs_start_entrypoint(vfs_find_module(VFS_MODULES, *i))); start_entry(NULL); } g_ModulesCompleted++; __sync_add_and_fetch(stats->totalTests, g_TotalTests); __sync_add_and_fetch(stats->traceCalls, g_TraceCalls); __sync_add_and_fetch(stats->warnings, g_Warnings); __sync_add_and_fetch(stats->failedTests, g_FailedTests); __sync_add_and_fetch(stats->modulesStarted, g_ModulesStarted); __sync_add_and_fetch(stats->modulesCompleted, g_ModulesCompleted); }
static void start_children_entries (GNode *node, gpointer data) { ClutterScoreEntry *entry = node->data; /* If data is NULL, start all entries that have no marker, otherwise only start entries that have the same marker */ if (data == NULL ? entry->marker == NULL : (entry->marker && !strcmp (data, entry->marker))) start_entry (entry); }