From: eregontp@... Date: 2018-01-25T09:55:58+00:00 Subject: [ruby-core:85106] [Ruby trunk Bug#14375] 3 Spec failures building MinGW 2018-01-19 trunk 61950 Issue #14375 has been updated by Eregon (Benoit Daloze). Thank you for the report and patches. I decided to remove the specs trying arbitrary values for chmod/umask in r62036. So much platform guards is usually a sign we are testing OS/libc-level stuff, which is not really the right thing for ruby/spec (we should test common real-world cases instead). ---------------------------------------- Bug #14375: 3 Spec failures building MinGW 2018-01-19 trunk 61950 https://bugs.ruby-lang.org/issues/14375#change-69819 * Author: MSP-Greg (Greg L) * Status: Closed * Priority: Normal * Assignee: Eregon (Benoit Daloze) * Target version: * ruby -v: ruby 2.6.0dev (2018-01-19 trunk 61950) [x64-mingw32] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- Below are the results of spec tests for 61964. The previous build, `ruby 2.6.0dev (2018-01-19 trunk 61949) [x64-mingw32]` did not have these failures. Thanks, Greg ``` 1) File#chmod always succeeds with any numeric values FAILED Expected to not get Exception but got RangeError (integer -1073741824 too small to convert to `unsigned short') spec/ruby/core/file/chmod_spec.rb:23:in `block (4 levels) in ' spec/ruby/core/file/chmod_spec.rb:22:in `each' spec/ruby/core/file/chmod_spec.rb:22:in `block (3 levels) in ' spec/ruby/core/file/chmod_spec.rb:3:in `' 2) File.chmod always succeeds with any numeric values FAILED Expected to not get Exception but got RangeError (integer -1073741824 too small to convert to `unsigned short') spec/ruby/core/file/chmod_spec.rb:131:in `block (4 levels) in ' spec/ruby/core/file/chmod_spec.rb:130:in `each' spec/ruby/core/file/chmod_spec.rb:130:in `block (3 levels) in ' spec/ruby/core/file/chmod_spec.rb:111:in `' 3) File.umask always succeeds with any integer values FAILED Expected to not get Exception but got RangeError (integer -1073741824 too small to convert to `unsigned short') spec/ruby/core/file/umask_spec.rb:37:in `block (3 levels) in ' spec/ruby/core/file/umask_spec.rb:36:in `each' spec/ruby/core/file/umask_spec.rb:36:in `block (2 levels) in ' spec/ruby/core/file/umask_spec.rb:3:in `' ``` ---Files-------------------------------- chmod_spec.rb (7.3 KB) spec-ruby-core-file-chmod_umask.patch (5.04 KB) umask_spec.rb (2.28 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: