]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: test-http-response-parser: Show error message for tests of invalid responses.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Thu, 27 Jul 2017 14:03:44 +0000 (16:03 +0200)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Tue, 12 Sep 2017 19:49:27 +0000 (21:49 +0200)
src/lib-http/test-http-response-parser.c

index 9f9f0886de99498942cc832efe157f4d8a4b0013..275d7964f7247eadde519cee22c52e5ce98b8aa8 100644 (file)
@@ -302,7 +302,7 @@ static void test_http_response_parse_invalid(void)
 
                while ((ret=http_response_parse_next(parser, FALSE, &response, &error)) > 0);
 
-               test_assert(ret < 0);
+               test_out_reason("parse failure", ret < 0, error);
                test_end();
                http_response_parser_deinit(&parser);
        } T_END;