summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-08-26 21:14:02 +0200
committerMax Kellermann <max@musicpd.org>2020-09-07 20:07:40 +0200
commit88446ccde961cde1ec21ec6036fef2f2b81af3b4 (patch)
treecd1471a751ae9121130c976cd59a15d864e06a71 /test
parent6238cc073474ce079197ff62e3f66f81963fc127 (diff)
test/run_filter: use Filter::Flush()
Diffstat (limited to 'test')
-rw-r--r--test/run_filter.cxx7
1 files changed, 7 insertions, 0 deletions
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;