ruby-changes:36939
From: usa <ko1@a...>
Date: Fri, 26 Dec 2014 10:57:50 +0900 (JST)
Subject: [ruby-changes:36939] usa:r49020 (trunk): * test/ruby/test_extlibs.rb: test in separated process for mathn/*.
usa 2014-12-26 10:57:32 +0900 (Fri, 26 Dec 2014) New Revision: 49020 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49020 Log: * test/ruby/test_extlibs.rb: test in separated process for mathn/*. Modified files: trunk/test/ruby/test_extlibs.rb Index: test/ruby/test_extlibs.rb =================================================================== --- test/ruby/test_extlibs.rb (revision 49019) +++ test/ruby/test_extlibs.rb (revision 49020) @@ -1,10 +1,14 @@ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_extlibs.rb#L1 +require "envutil" + class TestExtLibs < Test::Unit::TestCase def self.check_existence(ext, add_msg = nil) add_msg = ". #{add_msg}" if add_msg - define_method("test_existence_of_#{ext.gsub(%r'/', '_')}") do - assert_nothing_raised("extension library `#{ext}' is not found#{add_msg}") do - require ext - end + define_method("test_existence_of_#{ext}") do + assert_separately([], <<-"end;", ignore_stderr: true) # do + assert_nothing_raised("extension library `#{ext}' is not found#{add_msg}") do + require "#{ext}" + end + end; end end @@ -32,8 +36,8 @@ class TestExtLibs < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_extlibs.rb#L36 check_existence "io/nonblock" check_existence "io/wait" check_existence "json" - #check_existence "mathn/complex" # break the world - #check_existence "mathn/rational" # break the world + check_existence "mathn/complex" + check_existence "mathn/rational" check_existence "nkf" check_existence "objspace" check_existence "openssl", "this may be false positive, but should assert because rubygems requires this" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/