test_file
test_file(fp, "test non-PTY", sizeof ("test non-PTY") - 1, 0);
test_file(sfp, "test PTY", sizeof ("test PTY") - 1, 0);