Avoid outputting to TTY after an expected memory corruption in testcase