diff options
| author | Per Larsson <[email protected]> | 2021-09-20 10:28:38 +0200 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2021-09-20 10:28:38 +0200 |
| commit | d7e8b3f1435ba50f50393692763508f3224aa9b1 (patch) | |
| tree | ee4357d70cdb9ea1fbcc3836d859cf39fe8e2f42 /zencore/compress.cpp | |
| parent | Added support for skipping package attachments. (diff) | |
| parent | trivial: include cleanup (diff) | |
| download | zen-d7e8b3f1435ba50f50393692763508f3224aa9b1.tar.xz zen-d7e8b3f1435ba50f50393692763508f3224aa9b1.zip | |
Merge branch 'main' of https://github.com/EpicGames/zen
Diffstat (limited to 'zencore/compress.cpp')
| -rw-r--r-- | zencore/compress.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/zencore/compress.cpp b/zencore/compress.cpp index 12a7b9ef8..8ca799e39 100644 --- a/zencore/compress.cpp +++ b/zencore/compress.cpp @@ -6,13 +6,13 @@ #include <zencore/compositebuffer.h> #include <zencore/crc32.h> #include <zencore/endian.h> +#include <zencore/testing.h> #include "../3rdparty/Oodle/include/oodle2.h" #if ZEN_PLATFORM_WINDOWS # pragma comment(lib, "oo2core_win64.lib") #endif -#include <doctest/doctest.h> #include <lz4.h> #include <functional> #include <limits> @@ -823,6 +823,8 @@ CompressedBuffer::TryGetCompressParameters(OodleCompressor& OutCompressor, Oodle \/ \/ \/ */ +#if ZEN_WITH_TESTS + TEST_CASE("CompressedBuffer") { uint8_t Zeroes[1024]{}; @@ -908,5 +910,6 @@ void compress_forcelink() { } +#endif } // namespace zen |