summaryrefslogtreecommitdiff
path: root/src/utils/dumplibs_unittest.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-21 20:03:51 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-21 20:03:51 +0300
commit76667ef0fa911fc8bf37df72896645dbfbbc0763 (patch)
tree4868b15a1c7e9d74e3c2ece0fff49ae61ff49be7 /src/utils/dumplibs_unittest.cc
parent9534d791fe73868c17ff3723d3eacee020a4a215 (diff)
downloadmanaplus-76667ef0fa911fc8bf37df72896645dbfbbc0763.tar.gz
manaplus-76667ef0fa911fc8bf37df72896645dbfbbc0763.tar.bz2
manaplus-76667ef0fa911fc8bf37df72896645dbfbbc0763.tar.xz
manaplus-76667ef0fa911fc8bf37df72896645dbfbbc0763.zip
Add sdl mixer version into libs version dump.
Diffstat (limited to 'src/utils/dumplibs_unittest.cc')
-rw-r--r--src/utils/dumplibs_unittest.cc17
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();