sanity: Close child stdout, suppress log messages

This way the sanity testing can be done without having to dig
through any stdout messages the test program sends. stderr is left
open, because we do want to know the specifics of any error
encountered during execution of a test.
Merge branch 'sanity-test-suite'