Complain if testfile writing fails