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;