# HG changeset patch # User Aki Tuomi # Date 1507269333 -10800 # Node ID 14262da623ba5ebd6137cc3514b89be3b01c6a80 # Parent 9a335a0ec5bc810804bcc06a03e30bc4b71985bf test-ostream-escaped: Check flush return value Found by coverity diff -r 9a335a0ec5bc -r 14262da623ba src/lib/test-ostream-escaped.c --- 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);