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;