test/run_input: use WithBufferedOutputStream()

This commit is contained in:
Max Kellermann 2020-09-07 20:02:50 +02:00
parent 2e93a83dd5
commit d7838950d8
2 changed files with 6 additions and 6 deletions

View File

@ -41,9 +41,9 @@ static void
tag_save(FILE *file, const Tag &tag)
{
StdioOutputStream sos(file);
BufferedOutputStream bos(sos);
tag_save(bos, tag);
bos.Flush();
WithBufferedOutputStream(sos, [&](auto &bos){
tag_save(bos, tag);
});
}
int main(int argc, char **argv)

View File

@ -124,9 +124,9 @@ static void
tag_save(FILE *file, const Tag &tag)
{
StdioOutputStream sos(file);
BufferedOutputStream bos(sos);
tag_save(bos, tag);
bos.Flush();
WithBufferedOutputStream(sos, [&](auto &bos){
tag_save(bos, tag);
});
}
static int