Project

General

Profile

Actions

Bug #7133

closed

[mingw] bogus TestProcess#test_execopts_gid test failure

Added by jonforums (Jon Forums) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 2.0.0dev (2012-10-09 trunk 37127) [i386-mingw32]
Backport:
[ruby-core:47878]

Description

On mingw windows builds, HAVE_GETGROUPS is not defined so Process.groups is not implemented

https://github.com/ruby/ruby/blob/trunk/process.c#L5389

Attached patch skips the test on windows and changes the output from

[15/74] TestProcess#test_execopts_gid = 0.00 s
2) Error:
test_execopts_gid(TestProcess):
NotImplementedError: groups() function is unimplemented on this machine
c:/Jenkins/workspace/ruby-trunk-svn/test/ruby/test_process.rb:1506:in groups' c:/Jenkins/workspace/ruby-trunk-svn/test/ruby/test_process.rb:1506:in test_execopts_gid'

to

[15/74] TestProcess#test_execopts_gid = 0.00 s
2) Skipped:
test_execopts_gid(TestProcess) [c:/Jenkins/workspace/ruby-trunk-svn/test/ruby/test_process.rb:1504]:
Process.groups not implemented on Windows platform

thereby enabling test-all to finish with 0 errors.


Files

fix_test_execopts_gid.patch (464 Bytes) fix_test_execopts_gid.patch jonforums (Jon Forums), 10/10/2012 08:02 AM
Actions

Also available in: Atom PDF

Like0
Like0