aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-02 03:00:23 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-02 03:00:23 +0000
commitad0c14666854a18b6f538f085f22fc4afd08fc07 (patch)
tree7deff9a4b8967c82deb1d69ffba672aef0c6f912 /test/rubygems
parentf7124a2ca3ce25fd028066af64e87ee5d60d3554 (diff)
downloadruby-ad0c14666854a18b6f538f085f22fc4afd08fc07.tar.gz
* test/rubygems/test_gem_specification.rb: skip tests which the
platform does not permit the filename of its test file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/test_gem_specification.rb24
1 files changed, 18 insertions, 6 deletions
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