ruby-changes:49984
From: ko1 <ko1@a...>
Date: Tue, 30 Jan 2018 11:22:03 +0900 (JST)
Subject: [ruby-changes:49984] ko1:r62102 (trunk): skip EINVAL on unsupported platform
ko1 2018-01-30 11:21:59 +0900 (Tue, 30 Jan 2018) New Revision: 62102 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62102 Log: skip EINVAL on unsupported platform Modified files: trunk/spec/ruby/core/file/shared/path.rb Index: spec/ruby/core/file/shared/path.rb =================================================================== --- spec/ruby/core/file/shared/path.rb (revision 62101) +++ spec/ruby/core/file/shared/path.rb (revision 62102) @@ -69,7 +69,7 @@ describe :file_path, shared: true do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/file/shared/path.rb#L69 File.open(@dir, File::RDWR | File::TMPFILE) do |f| -> { f.send(@method) }.should raise_error(IOError) end - rescue Errno::EOPNOTSUPP + rescue Errno::EOPNOTSUPP, Errno::EINVAL # EOPNOTSUPP: no support from the filesystem 1.should == 1 end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/