From 68e2a2e5cea3204f935988a8b3b49d54e8dc43be Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 30 Jan 2018 02:21:59 +0000 Subject: skip EINVAL on unsupported platform git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/ruby/core/file/shared/path.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/ruby/core/file') diff --git a/spec/ruby/core/file/shared/path.rb b/spec/ruby/core/file/shared/path.rb index 3f2fccafa9..772272909c 100644 --- a/spec/ruby/core/file/shared/path.rb +++ b/spec/ruby/core/file/shared/path.rb @@ -69,7 +69,7 @@ describe :file_path, shared: true do 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 -- cgit v1.2.3