testprogram: let main() return normally, don't exit for platform (eg Android) where there is some cleanup afterward.

This commit is contained in:
Sylvain
2023-04-12 11:07:28 +02:00
committed by Sylvain Becker
parent ec053ec4f8
commit c101e719fd
31 changed files with 123 additions and 41 deletions

View File

@@ -52,7 +52,10 @@ quit(int rc)
factory->DestroyNativeWindow(native_window);
}
SDLTest_CommonDestroyState(state);
exit(rc);
/* Let 'main()' return normally */
if (rc != 0) {
exit(rc);
}
}
static void MoveSprites(SDL_Renderer *renderer, SDL_Texture *sprite)