Get CPU tests working again

This commit is contained in:
Aaron Culliney
2015-01-31 14:23:18 -08:00
parent f234de116f
commit eb534e17b5
2 changed files with 9 additions and 0 deletions

View File

@@ -582,7 +582,9 @@ void c_initialize_vm() {
------------------------------------------------------------------------- */ ------------------------------------------------------------------------- */
void reinitialize(void) { void reinitialize(void) {
#if !TESTING
assert(pthread_self() == cpu_thread_id); assert(pthread_self() == cpu_thread_id);
#endif
cycles_count_total = 0; cycles_count_total = 0;

View File

@@ -135,6 +135,13 @@ void test_common_init(bool do_cputhread) {
fprintf(stderr, "Pass HEADLESS=1 to environment to run nonstop\n"); fprintf(stderr, "Pass HEADLESS=1 to environment to run nonstop\n");
c_debugger_set_timeout(0); c_debugger_set_timeout(0);
} }
} else {
#ifdef AUDIO_ENABLED
DSInit();
speaker_init();
MB_Initialize();
#endif
reinitialize();
} }
} }