test/run_filter: use Filter::Flush()

This commit is contained in:
Max Kellermann 2019-08-26 21:14:02 +02:00
parent b0a04b3da8
commit f750c8012a
1 changed files with 7 additions and 0 deletions

View File

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