ruby-changes:54921
From: k0kubun <ko1@a...>
Date: Sat, 23 Feb 2019 11:22:09 +0900 (JST)
Subject: [ruby-changes:54921] k0kubun:r67126 (trunk): spec/../rbconfig_spec.rb: skip spec not working on MinGW
k0kubun 2019-02-23 11:22:05 +0900 (Sat, 23 Feb 2019) New Revision: 67126 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67126 Log: spec/../rbconfig_spec.rb: skip spec not working on MinGW Modified files: trunk/spec/ruby/library/rbconfig/rbconfig_spec.rb Index: spec/ruby/library/rbconfig/rbconfig_spec.rb =================================================================== --- spec/ruby/library/rbconfig/rbconfig_spec.rb (revision 67125) +++ spec/ruby/library/rbconfig/rbconfig_spec.rb (revision 67126) @@ -9,15 +9,18 @@ describe 'RbConfig::CONFIG' do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/rbconfig/rbconfig_spec.rb#L9 end end - it "['rubylibdir'] returns the directory containing Ruby standard libraries" do - rubylibdir = RbConfig::CONFIG['rubylibdir'] - File.directory?(rubylibdir).should == true - File.exist?("#{rubylibdir}/fileutils.rb").should == true - end + # On MinGW, RbConfig points to installed dir, and these tests fail when testing this from build dir on AppVeyor. + platform_is_not :mingw do + it "['rubylibdir'] returns the directory containing Ruby standard libraries" do + rubylibdir = RbConfig::CONFIG['rubylibdir'] + File.directory?(rubylibdir).should == true + File.exist?("#{rubylibdir}/fileutils.rb").should == true + end - it "['archdir'] returns the directory containing standard libraries C extensions" do - archdir = RbConfig::CONFIG['archdir'] - File.directory?(archdir).should == true - File.exist?("#{archdir}/etc.#{RbConfig::CONFIG['DLEXT']}").should == true + it "['archdir'] returns the directory containing standard libraries C extensions" do + archdir = RbConfig::CONFIG['archdir'] + File.directory?(archdir).should == true + File.exist?("#{archdir}/etc.#{RbConfig::CONFIG['DLEXT']}").should == true + end end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/