]> 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>
Thu, 27 Jul 2017 14:47:01 +0000 (16:47 +0200)
src/lib-http/test-http-response-parser.c

index dfd8492f03565da35a967f507a729cb94fe69ac2..ddfc9875fec45da800e49ba982a8476ff5244209 100644 (file)
@@ -303,7 +303,7 @@ static void test_http_response_parse_invalid(void)
 
                while ((ret=http_response_parse_next(parser, HTTP_RESPONSE_PAYLOAD_TYPE_ALLOWED, &response, &error)) > 0);
 
-               test_assert(ret < 0);
+               test_out_reason("parse failure", ret < 0, error);
                test_end();
                http_response_parser_deinit(&parser);
        } T_END;