Issue #14828 has been reported by MSP-Greg (Greg L).

----------------------------------------
Bug #14828: syn 63583 fix for windows
https://bugs.ruby-lang.org/issues/14828

* Author: MSP-Greg (Greg L)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.0dev (2018-06-05 trunk 63572) [x64-mingw32]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
@normalperson

svn 63583 seems to have broken the mswin build, I have the same issue locally with MinGW.  The methods `set_winsize_setup` and `set_winsize_teardown` are defined base on whether `PTY` is defined.  It is not on windows.


The test `test_set_winsize_console` is run regardless of whether `PTY` exsists, and hence the 'NameError: undefined local variable or method' message.


Attached patch is one way to fix the issue.


Thanks, Greg



---Files--------------------------------
63583_fix.patch (819 Bytes)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>