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

ruby-changes:19067

From: nagachika <ko1@a...>
Date: Mon, 14 Mar 2011 21:27:38 +0900 (JST)
Subject: [ruby-changes:19067] Ruby:r31106 (trunk): * test/ruby/test_require.rb (test_require_too_long_filename):

nagachika	2011-03-14 21:27:31 +0900 (Mon, 14 Mar 2011)

  New Revision: 31106

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

  Log:
    * test/ruby/test_require.rb (test_require_too_long_filename):
           increase path length, because MAXPATHLEN is defined as 4096 on linux.
    
         * test/ruby/test_require.rb (test_require_path_home_1): ditto.
    
         * test/ruby/test_require.rb (test_require_path_home_2): ditto.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_require.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31105)
+++ ChangeLog	(revision 31106)
@@ -1,3 +1,12 @@
+Mon Mar 14 21:20:44 2011  CHIKANAGA Tomoyuki  <nagachika00@g...>
+
+	* test/ruby/test_require.rb (test_require_too_long_filename):
+	  increase path length, because MAXPATHLEN is defined as 4096 on linux.
+
+	* test/ruby/test_require.rb (test_require_path_home_1): ditto.
+
+	* test/ruby/test_require.rb (test_require_path_home_2): ditto.
+
 Mon Mar 14 19:54:37 2011  Tanaka Akira  <akr@f...>
 
 	* ext/openssl/ossl_x509cert.c: parenthesize macro arguments.
Index: test/ruby/test_require.rb
===================================================================
--- test/ruby/test_require.rb	(revision 31105)
+++ test/ruby/test_require.rb	(revision 31106)
@@ -29,7 +29,7 @@
     INPUT
 
     begin
-      assert_in_out_err(["-S", "-w", "foo/" * 1000 + "foo"], "") do |r, e|
+      assert_in_out_err(["-S", "-w", "foo/" * 1024 + "foo"], "") do |r, e|
         assert_equal([], r)
         assert_operator(2, :<=, e.size)
         assert_match(/warning: openpath: pathname too long \(ignored\)/, e.first)
@@ -51,7 +51,7 @@
     pathname_too_long = /pathname too long \(ignored\).*\(LoadError\)/m
 
     ENV["RUBYPATH"] = "~"
-    ENV["HOME"] = "/foo" * 1000
+    ENV["HOME"] = "/foo" * 1024
     assert_in_out_err(%w(-S -w test_ruby_test_require), "", [], pathname_too_long)
 
   ensure
@@ -63,7 +63,7 @@
     env_rubypath, env_home = ENV["RUBYPATH"], ENV["HOME"]
     pathname_too_long = /pathname too long \(ignored\).*\(LoadError\)/m
 
-    ENV["RUBYPATH"] = "~" + "/foo" * 1000
+    ENV["RUBYPATH"] = "~" + "/foo" * 1024
     ENV["HOME"] = "/foo"
     assert_in_out_err(%w(-S -w test_ruby_test_require), "", [], pathname_too_long)
 

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

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