mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
-tighten test further
This commit is contained in:
@@ -63,7 +63,7 @@ expect_result_n (const char *str, size_t str_len,
|
|||||||
buf_out, &result_len);
|
buf_out, &result_len);
|
||||||
if (buf_len < expected_len)
|
if (buf_len < expected_len)
|
||||||
{ /* The result should not fit into the buffer */
|
{ /* The result should not fit into the buffer */
|
||||||
if (res || (0 < result_len))
|
if (res || (0 <= result_len))
|
||||||
{
|
{
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
"MHD_str_remove_token_caseless_() FAILED:\n"
|
"MHD_str_remove_token_caseless_() FAILED:\n"
|
||||||
@@ -78,6 +78,7 @@ expect_result_n (const char *str, size_t str_len,
|
|||||||
else
|
else
|
||||||
{ /* The result should fit into the buffer */
|
{ /* The result should fit into the buffer */
|
||||||
if ( (expected_removed != res) ||
|
if ( (expected_removed != res) ||
|
||||||
|
(result_len < 0) ||
|
||||||
(expected_len != (size_t) result_len) ||
|
(expected_len != (size_t) result_len) ||
|
||||||
((0 != result_len) && (0 != memcmp (expected, buf_out,
|
((0 != result_len) && (0 != memcmp (expected, buf_out,
|
||||||
(size_t) result_len))) ||
|
(size_t) result_len))) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user