This eliminates noisy warnings about tcsetpgrp when the tests are run without a tty, as reported in #6539