changeset 22598:14262da623ba

test-ostream-escaped: Check flush return value Found by coverity
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Fri, 06 Oct 2017 08:55:33 +0300
parents 9a335a0ec5bc
children 569e7f438b90
files src/lib/test-ostream-escaped.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/test-ostream-escaped.c	Fri Oct 06 08:54:38 2017 +0300
+++ b/src/lib/test-ostream-escaped.c	Fri Oct 06 08:55:33 2017 +0300
@@ -72,7 +72,7 @@
 
 	test_begin("test_ostream_escaped_hex()");
 	test_assert(o_stream_send_str(os_encode, "hello, world") == 12);
-	o_stream_flush(os_encode);
+	test_assert(o_stream_flush(os_encode) == 1);
 
 	test_assert(strcmp(str_c(str), "68656c6c6f2c20776f726c64") == 0);