diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-10-28 11:59:21 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-06-20 23:22:54 +0300 |
commit | 40b675518b14fef4d327323f63c9c70f1b2bc44e (patch) | |
tree | bc76a606e191a0130229589998bf5c6e3d200838 /src/testzzuf/mhd_debug_funcs.h | |
parent | 87d40361d30012eced13e0d0a7e0544754bc777b (diff) | |
download | libmicrohttpd-40b675518b14fef4d327323f63c9c70f1b2bc44e.tar.gz libmicrohttpd-40b675518b14fef4d327323f63c9c70f1b2bc44e.zip |
testzzuf: re-worked zzuf testing
* merged test_get, test_get_chunked, test_put
* fixed use of header instead of footer in chunked data callback
* added checks for results of all used MHD functions
* added reading of all data in the input buffer provided by MHD for
callback
* re-used libcurl handles to re-use connections in all modes
* added testing of 'poll' and 'epoll' for all tests
* removed the need for socat
* removed forking with potential forked process zombies
* fixed processing only of the first request (as soon as socat
connection become broken, all following requests went to nowhere)
* implemented correct response for unsupported methods
* used proper timeout for 'external select()' (taken into account
libcurl timeout too)
* added check for extra reply data
* added debug print of libcurl sent and received data
* merged all tests into single source file
* fixed a lot of compiler warnings
* added check for incorrect replies produced by MHD
Diffstat (limited to 'src/testzzuf/mhd_debug_funcs.h')
-rw-r--r-- | src/testzzuf/mhd_debug_funcs.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testzzuf/mhd_debug_funcs.h b/src/testzzuf/mhd_debug_funcs.h index 02423edb..04de0970 100644 --- a/src/testzzuf/mhd_debug_funcs.h +++ b/src/testzzuf/mhd_debug_funcs.h | |||
@@ -44,4 +44,14 @@ MHD_is_avoid_accept4_possible_ (void); | |||
44 | void | 44 | void |
45 | MHD_avoid_accept4_ (struct MHD_Daemon *daemon); | 45 | MHD_avoid_accept4_ (struct MHD_Daemon *daemon); |
46 | 46 | ||
47 | /** | ||
48 | * Checks whether any know sanitizer is enabled for this build. | ||
49 | * zzuf does not work together with sanitizers as both are intercepting | ||
50 | * standard library calls. | ||
51 | * @return non-zero if any sanitizer is enabled, | ||
52 | * zero otherwise | ||
53 | */ | ||
54 | int | ||
55 | MHD_are_sanitizers_enabled_ (void); | ||
56 | |||
47 | #endif /* MHD_DEBUG_FUNCS_H */ | 57 | #endif /* MHD_DEBUG_FUNCS_H */ |