OK, apparently the test is failing whenever "stty rows 0 columns 0"
is run.
How are you running the test? I.e., are you running it from an xterm,
from Emacs, or what? Are you redirecting stdin, stdout, or stderr?
What happens when you run these commands, on a fresh terminal,
without any I/O redirection?
src/stty -a
src/stty size
src/stty rows 40 columns 80
src/stty size
src/stty rows 0 columns 0
src/stty size
src/stty -a