diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-18 22:51:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-18 22:53:01 +0300 |
commit | 40de3bee0278d6584561a827123bc342934adccb (patch) | |
tree | 460ba68f29ec25377ef1971989c4c46e507ea3da /src/integrity_unittest.cc | |
parent | dffd0a4a8e99196ad27f8fde2430b09dd29cac57 (diff) | |
download | manaplus-40de3bee0278d6584561a827123bc342934adccb.tar.gz manaplus-40de3bee0278d6584561a827123bc342934adccb.tar.bz2 manaplus-40de3bee0278d6584561a827123bc342934adccb.tar.xz manaplus-40de3bee0278d6584561a827123bc342934adccb.zip |
Add support for additional unit test library doctest.
Diffstat (limited to 'src/integrity_unittest.cc')
-rw-r--r-- | src/integrity_unittest.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/integrity_unittest.cc b/src/integrity_unittest.cc index 7bb07d94f..a65e9a7ef 100644 --- a/src/integrity_unittest.cc +++ b/src/integrity_unittest.cc @@ -51,6 +51,10 @@ #include <SDL_image.h> +#ifndef UNITTESTS_CATCH +#include <algorithm> +#endif // UNITTESTS_CATCH + #include "debug.h" namespace @@ -96,7 +100,7 @@ static bool compareBuffers(const unsigned char *const buf2) return isCorrect; } -TEST_CASE("integrity leak test1") +TEST_CASE("integrity leak test1", "") { logger = new Logger(); REQUIRE(gui == nullptr); @@ -348,7 +352,7 @@ TEST_CASE("integrity tests", "integrity") // VirtFs::deinit(); } -TEST_CASE("integrity leak test2") +TEST_CASE("integrity leak test2", "") { logger = new Logger(); REQUIRE(gui == nullptr); |