More progress on testing tty_sync().