test/testutils.c


Log

Author Commit Date CI Message
Cameron Cawley d2b59658 2022-05-19T22:54:23 Remove extra path separator in GetNearbyFilename
Sam Lantinga 0ffd9859 2022-05-18T09:59:12 Check to see if the file exists in the base path before returning it
pionere ea152532 2022-05-18T17:23:26 fix GetNearbyFilename - fix memory leak due to variable 'base' - fix usage of uninitialized variable (path)
Simon McVittie 76a7b629 2022-04-12T13:07:18 test: Add some common code to load test resources As well as reducing duplication, this lets the tests load their resources from the SDL_GetBasePath() on platforms that support it, which is useful if the tests are compiled along with the rest of SDL and installed below /usr as manual tests, similar to GNOME's installed-tests convention. Thanks to Ozkan Sezer for the OS/2 build glue. Co-authored-by: Ozkan Sezer <sezeroz@gmail.com> Signed-off-by: Simon McVittie <smcv@collabora.com>