diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/rubygems/test_gem_specification.rb | 24 |
2 files changed, 23 insertions, 6 deletions
@@ -1,3 +1,8 @@ +Thu Jul 2 11:58:59 2015 NAKAMURA Usaku <usa@ruby-lang.org> + + * test/rubygems/test_gem_specification.rb: skip tests which the + platform does not permit the filename of its test file. + Thu Jul 2 11:36:20 2015 Nobuyoshi Nakada <nobu@ruby-lang.org> * test/rubygems/test_gem_resolver_git_specification.rb: require diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index 5784fa58af..29c8b7c178 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -942,8 +942,12 @@ dependencies: [] @a2.name = 'a};raise "improper escaping";%q{' full_path = @a2.spec_file - write_file full_path do |io| - io.write @a2.to_ruby_for_cache + begin + write_file full_path do |io| + io.write @a2.to_ruby_for_cache + end + rescue Errno::EINVAL + skip "cannot create '#{full_path}' on this platform" end spec = Gem::Specification.load full_path @@ -957,8 +961,12 @@ dependencies: [] @a2.name = 'a#{raise %<improper escaping>}' full_path = @a2.spec_file - write_file full_path do |io| - io.write @a2.to_ruby_for_cache + begin + write_file full_path do |io| + io.write @a2.to_ruby_for_cache + end + rescue Errno::EINVAL + skip "cannot create '#{full_path}' on this platform" end spec = Gem::Specification.load full_path @@ -972,8 +980,12 @@ dependencies: [] @a2.name = 'a";raise "improper escaping";"' full_path = @a2.spec_file - write_file full_path do |io| - io.write @a2.to_ruby_for_cache + begin + write_file full_path do |io| + io.write @a2.to_ruby_for_cache + end + rescue Errno::EINVAL + skip "cannot create '#{full_path}' on this platform" end spec = Gem::Specification.load full_path |