test/run_filter: use Filter::Flush()

This commit is contained in:
Max Kellermann 2019-08-26 21:14:02 +02:00
parent 6238cc0734
commit 88446ccde9

View File

@ -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;