]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-json: test-json-istream - Fix assertion of read results
authorStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 21 Nov 2023 17:28:19 +0000 (18:28 +0100)
committerStephan Bosch <stephan.bosch@open-xchange.com>
Mon, 27 Nov 2023 20:19:18 +0000 (21:19 +0100)
src/lib-json/test-json-istream.c

index 4c1506cd77219c2628cf4521d6bf2c42159ecce1..7aa68cd67e509e8824c0d585c370e2c214c4041d 100644 (file)
@@ -3809,6 +3809,7 @@ static void test_json_istream_error(void)
 
        ret = json_istream_read_stream(jinput, 0, IO_BLOCK_SIZE,
                                        "/tmp/dovecot-test-json.", &jnode);
+       test_assert(ret != 0);
        ret = json_istream_read(jinput, &jnode);        
        error = json_istream_get_error(jinput);
        test_out_reason("read failure", (ret < 0 && error != NULL), error);