Suppress output when running unit tests.
This does two things:
- Now does not output to debug.log if -printtodebugger flag is passed
- Unit tests set -printtodebugger so only test results are output to stdout
Note that -printtodebugger only actually prints to the debugger on Windows.