From f750c8012a5853c5353d1d1b773f9b22d7395070 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 5a14db097..0515b1b4e 100644 --- a/test/run_filter.cxx +++ b/test/run_filter.cxx @@ -183,6 +183,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;