From 937c41eb1c7270be2512de6d1bcbf4c697cef310 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Sat, 17 Aug 2024 22:20:02 +0200 Subject: [PATCH] testautomation/mouse: add SDLTest_AssertPass before SDL_DestroyCursor's --- test/testautomation_mouse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/testautomation_mouse.c b/test/testautomation_mouse.c index fa33f9a12..ef2f4c047 100644 --- a/test/testautomation_mouse.c +++ b/test/testautomation_mouse.c @@ -206,6 +206,7 @@ static int mouse_createFreeCursor(void *arg) } /* Free cursor again */ + SDLTest_AssertPass("About to call SDL_DestroyCursor()"); SDL_DestroyCursor(cursor); SDLTest_AssertPass("Call to SDL_DestroyCursor()"); @@ -240,6 +241,7 @@ static int mouse_createFreeColorCursor(void *arg) } /* Free cursor again */ + SDLTest_AssertPass("About to call SDL_DestroyCursor()"); SDL_DestroyCursor(cursor); SDLTest_AssertPass("Call to SDL_DestroyCursor()"); @@ -319,6 +321,7 @@ static int mouse_setCursor(void *arg) SDLTest_AssertPass("Call to SDL_SetCursor(NULL)"); /* Free cursor again */ + SDLTest_AssertPass("About to call SDL_DestroyCursor()"); SDL_DestroyCursor(cursor); SDLTest_AssertPass("Call to SDL_DestroyCursor()");