Author: danielsh Date: Fri Jul 10 16:55:00 2015 New Revision: 1690288 URL: http://svn.apache.org/r1690288 Log: * build/run_tests.py (ioctl_GWINSZ): Rewrite to work on systems where sizeof(short) != 2.
Modified: subversion/trunk/build/run_tests.py Modified: subversion/trunk/build/run_tests.py URL: http://svn.apache.org/viewvc/subversion/trunk/build/run_tests.py?rev=1690288&r1=1690287&r2=1690288&view=diff ============================================================================== --- subversion/trunk/build/run_tests.py (original) +++ subversion/trunk/build/run_tests.py Fri Jul 10 16:55:00 2015 @@ -81,7 +81,8 @@ def _get_term_width(): def ioctl_GWINSZ(fd): try: import fcntl, termios, struct, os - cr = struct.unpack('hh', fcntl.ioctl(fd, termios.TIOCGWINSZ, '1234')) + cr = struct.unpack('hh', fcntl.ioctl(fd, termios.TIOCGWINSZ, + struct.pack('hh', 0, 0))) except: return None return cr