Skip to content

Commit 989ae6a

Browse files
disable compression test if configured without enabling compression support.
1 parent fda2cdd commit 989ae6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/unittest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1899,6 +1899,7 @@ TEST_CASE("websocket")
18991899
app.stop();
19001900
}
19011901

1902+
#ifdef CROW_ENABLE_COMPRESSION
19021903
TEST_CASE("zlib_compression")
19031904
{
19041905
static char buf_deflate[2048];
@@ -2093,6 +2094,7 @@ TEST_CASE("zlib_compression")
20932094
app_deflate.stop();
20942095
app_gzip.stop();
20952096
}
2097+
#endif
20962098

20972099
TEST_CASE("catchall")
20982100
{

0 commit comments

Comments
 (0)