Fixes forked test succeeding when the test harness fails. #2442/#2730 by @eed3si9n/@dwijnand[@dwijnand}