diff options
Diffstat (limited to 'src/utils/dumplibs_unittest.cc')
-rw-r--r-- | src/utils/dumplibs_unittest.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/utils/dumplibs_unittest.cc b/src/utils/dumplibs_unittest.cc index d89dee5fd..aca0f91f3 100644 --- a/src/utils/dumplibs_unittest.cc +++ b/src/utils/dumplibs_unittest.cc @@ -25,6 +25,7 @@ #include "utils/stringutils.h" #include <SDL_image.h> +#include <SDL_mixer.h> PRAGMACLANG6(GCC diagnostic push) PRAGMACLANG6(GCC diagnostic ignored "-Wold-style-cast") #include <SDL_net.h> @@ -123,6 +124,22 @@ TEST_CASE("dumplibs tests") REQUIRE(build == link); } + SECTION("sdl_mixer") + { + const SDL_version *const linkVersion = Mix_Linked_Version(); + + const std::string build = strprintf("%d.%d.%d", + SDL_MIXER_MAJOR_VERSION, + SDL_MIXER_MINOR_VERSION, + SDL_MIXER_PATCHLEVEL); + const std::string link = strprintf("%d.%d.%d", + linkVersion->major, + linkVersion->minor, + linkVersion->patch); + + REQUIRE(build == link); + } + SECTION("sdl_ttf") { const SDL_version *const linkVersion = TTF_Linked_Version(); |