diff options
| author | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2025-11-11 17:24:26 +0100 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2025-11-16 12:15:05 +0100 |
| commit | 8d4bd56217ab8f2701bc3f2fa643dcf45d460343 (patch) | |
| tree | c8349bdeabf24044b81bc775e47d8b5f45131d33 /test/example.c | |
| parent | 30ff317fb42797a2456f1747476cfc5c0085425c (diff) | |
| download | Project-Tick-8d4bd56217ab8f2701bc3f2fa643dcf45d460343.tar.gz Project-Tick-8d4bd56217ab8f2701bc3f2fa643dcf45d460343.zip | |
Use CTest to simplify testing options
Add CMake variable TEST_STOCK_ZLIB to disable some tests if attempting
to run our testsuite on stock zlib.
PR depends on CMP0077, introduced by CMake 3.13.
Upped minimum compatible CMake version to 3.13, same as we have
actually been telling people was the minumum for years on the wiki.
Upped upper compatible CMake version to 3.31, my current version.
Diffstat (limited to 'test/example.c')
| -rw-r--r-- | test/example.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/example.c b/test/example.c index 5393fa5de9..fd62bd5d7f 100644 --- a/test/example.c +++ b/test/example.c @@ -420,7 +420,7 @@ static void test_flush(unsigned char *compr, z_uintmax_t *comprLen) { *comprLen = (z_size_t)c_stream.total_out; } -#ifdef ZLIBNG_ENABLE_TESTS +#ifndef TEST_STOCK_ZLIB /* =========================================================================== * Test inflateSync() * We expect a certain compressed block layout, so skip this with the original zlib. @@ -979,7 +979,7 @@ int main(int argc, char *argv[]) { #endif test_flush(compr, &comprLen); -#ifdef ZLIBNG_ENABLE_TESTS +#ifndef TEST_STOCK_ZLIB test_sync(compr, comprLen, uncompr, uncomprLen); #endif comprLen = uncomprLen; |
