/patches/ruby/2.1.8/railsexpress/01-zero-broken-tests.patch
Patch | 61 lines | 53 code | 8 blank | 0 comment | 0 complexity | 3ac133297b3fa9d94c1062c7e3c94eb4 MD5 | raw file
Possible License(s): MIT, LGPL-3.0
- diff --git a/test/etc/test_etc.rb b/test/etc/test_etc.rb
- index 946be9b..12a99fe 100644
- --- a/test/etc/test_etc.rb
- +++ b/test/etc/test_etc.rb
- @@ -68,6 +68,7 @@ class TestEtc < Test::Unit::TestCase
- end
-
- def test_group
- + skip "Broken Etc.group on this machine" if ENV['RUBY_TEST_OPTIONS_BROKEN_GROUP']=='1'
- Etc.group do |s|
- assert_instance_of(String, s.name)
- assert_instance_of(String, s.passwd) if s.respond_to?(:passwd)
- @@ -78,6 +79,7 @@ class TestEtc < Test::Unit::TestCase
- end
-
- def test_getgrgid
- + skip "Broken Etc.getgrgid on this machine" if ENV['RUBY_TEST_OPTIONS_BROKEN_GETGRGID']=='1'
- # group database is not unique on GID, and which entry will be
- # returned by getgrgid() is not specified.
- groups = Hash.new {[]}
- @@ -94,6 +96,7 @@ class TestEtc < Test::Unit::TestCase
- end
-
- def test_getgrnam
- + skip "Broken Etc.getgrnam on this machine" if ENV['RUBY_TEST_OPTIONS_BROKEN_GETGRNAM']=='1'
- groups = {}
- Etc.group do |s|
- groups[s.name] ||= s unless /\A\+/ =~ s.name
- @@ -104,6 +107,7 @@ class TestEtc < Test::Unit::TestCase
- end
-
- def test_group_with_low_level_api
- + skip "Broken Etc.group on this machine" if ENV['RUBY_TEST_OPTIONS_BROKEN_GROUP']=='1'
- a = []
- Etc.group {|s| a << s }
- b = []
- diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb
- index d79653c..0c7488e 100644
- --- a/test/rinda/test_rinda.rb
- +++ b/test/rinda/test_rinda.rb
- @@ -479,6 +479,8 @@ class TupleSpaceProxyTest < Test::Unit::TestCase
- end
-
- def test_take_bug_8215
- + skip "test_take_bug_8215 broken on my machine" if ENV['RUBY_TEST_OPTIONS_BROKEN_DRB']=='1'
- +
- require_relative '../ruby/envutil'
- service = DRb.start_service("druby://localhost:0", @ts_base)
-
- diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
- index 28e08ce..4fb6cae 100644
- --- a/test/ruby/test_process.rb
- +++ b/test/ruby/test_process.rb
- @@ -1620,6 +1620,7 @@ class TestProcess < Test::Unit::TestCase
-
- def test_execopts_gid
- skip "Process.groups not implemented on Windows platform" if windows?
- + skip "Broken Etc.getgrgid on this machine" if ENV['RUBY_TEST_OPTIONS_BROKEN_GETGRGID']=='1'
- feature6975 = '[ruby-core:47414]'
-
- [30000, *Process.groups.map {|g| g = Etc.getgrgid(g); [g.name, g.gid]}].each do |group, gid|