Closed madebr closed 1 week ago
It turns out logging after SDL_Quit
stops working.
After SDL_Quit
, the verbosity is reset to the default SDL_LOG_PRIORITY_ERROR
.
The following patch "fixes" the issue.
--- a/test/testautomation_subsystems.c
+++ b/test/testautomation_subsystems.c
@@ -27,6 +27,7 @@ static void subsystemsTearDown(void *arg)
{
/* Reset each one of the SDL subsystems */
SDL_Quit();
+ SDL_LogSetPriority(SDL_LOG_CATEGORY_TEST, SDL_LOG_PRIORITY_INFO);
SDLTest_AssertPass("Cleanup of subsystems test completed");
}
Looks great!
Looks great!
Is it? SDL2 does not have this behavior. This would diverge the SDL2 and SDL2-compat tests.
sdl2-compat resets the logging level to default after SDL_Quit(), this is fine.
Wait, this is sdl2-compat. It should be doing that, can you look and see why that's not working?
The testautomation stops in
subsystems_referenceCount
, but has still 3 tests to do.https://github.com/libsdl-org/sdl2-compat/actions/runs/10650456036/job/29521852563#step:14:6499