[前][次][番号順一覧][スレッド一覧]

ruby-changes:39018

From: usa <ko1@a...>
Date: Thu, 2 Jul 2015 12:00:45 +0900 (JST)
Subject: [ruby-changes:39018] usa:r51099 (trunk): * test/rubygems/test_gem_specification.rb: skip tests which the

usa	2015-07-02 12:00:23 +0900 (Thu, 02 Jul 2015)

  New Revision: 51099

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51099

  Log:
    * test/rubygems/test_gem_specification.rb: skip tests which the
      platform does not permit the filename of its test file.

  Modified files:
    trunk/ChangeLog
    trunk/test/rubygems/test_gem_specification.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51098)
+++ ChangeLog	(revision 51099)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jul  2 11:58:59 2015  NAKAMURA Usaku  <usa@r...>
+
+	* 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@r...>
 
 	* test/rubygems/test_gem_resolver_git_specification.rb: require
Index: test/rubygems/test_gem_specification.rb
===================================================================
--- test/rubygems/test_gem_specification.rb	(revision 51098)
+++ test/rubygems/test_gem_specification.rb	(revision 51099)
@@ -942,8 +942,12 @@ dependencies: [] https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_specification.rb#L942
     @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: [] https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_specification.rb#L961
     @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: [] https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_specification.rb#L980
     @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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]