libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 9826b05efe1a67f70319a2997c2f47f06554b045
parent afbcfc122d22420f09ba4874da3cbb82ea70301a
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu,  1 Apr 2021 20:48:25 +0300

testzzuf: test thoroughly if heavy tests are enabled

Diffstat:
Msrc/testzzuf/Makefile.am | 4++++
Msrc/testzzuf/socat.c | 4++++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/testzzuf/Makefile.am b/src/testzzuf/Makefile.am @@ -8,6 +8,10 @@ endif AM_CPPFLAGS = -I$(top_srcdir)/src/include \ $(LIBCURL_CPPFLAGS) + +if HEAVY_TESTS +AM_CPPFLAGS += -D_MHD_HEAVY_TESTS=1 +endif EXTRA_DIST = README socat.c diff --git a/src/testzzuf/socat.c b/src/testzzuf/socat.c @@ -43,7 +43,11 @@ * long for most user's patience. So this small * value is the default. */ +#ifndef _MHD_HEAVY_TESTS #define LOOP_COUNT 10 +#else /* ! _MHD_HEAVY_TESTS */ +#define LOOP_COUNT 200 +#endif /* ! _MHD_HEAVY_TESTS */ #define CURL_TIMEOUT 50L