You're right, and I don't particularly like it, either.
But the only alternative that does not test implementation details is to spawn a number of processes, let them have a go at writing to stdout, and checking that output is not garbled.
Do you think that would be better?