Improve testcpu on desktop and fix it on Android

This commit is contained in:
Aaron Culliney
2016-02-15 13:32:05 -08:00
parent 7ef70e7943
commit 545376b1be
2 changed files with 2 additions and 1 deletions

View File

@@ -199,7 +199,9 @@ void Java_org_deadc0de_apple2ix_Apple2View_nativeGraphicsInitialized(JNIEnv *env
LOG("width:%d height:%d landscape:%d", width, height, landscape);
_video_setRenderThread(pthread_self()); // Assume Android knows what it's doing ;-P
#if !TESTING
assert(cpu_isPaused());
#endif
video_shutdown(false);
video_reshape(width, height, landscape);

View File

@@ -7417,7 +7417,6 @@ GREATEST_SUITE(test_suite_cpu) {
srandom(time(NULL));
video_init();
test_common_init();
assert(cpu_thread_id == 0 && "This test is not designed to run with alternate CPU thread");
extern void reinitialize(void);