From 88446ccde961cde1ec21ec6036fef2f2b81af3b4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 26 Aug 2019 21:14:02 +0200 Subject: [PATCH] test/run_filter: use Filter::Flush() --- test/run_filter.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/run_filter.cxx b/test/run_filter.cxx index d51461511..c6b6f9bff 100644 --- a/test/run_filter.cxx +++ b/test/run_filter.cxx @@ -184,6 +184,13 @@ try { FullWrite(output_fd, dest); } + while (true) { + auto dest = filter->Flush(); + if (dest.IsNull()) + break; + FullWrite(output_fd, dest); + } + /* cleanup and exit */ return EXIT_SUCCESS;