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

ruby-changes:20690

From: nagachika <ko1@a...>
Date: Fri, 29 Jul 2011 22:15:09 +0900 (JST)
Subject: [ruby-changes:20690] nagachika:r32738 (trunk): * test/ruby/test_process.rb (test_rlimit_nofile): fix r32734.

nagachika	2011-07-29 22:14:59 +0900 (Fri, 29 Jul 2011)

  New Revision: 32738

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

  Log:
    * test/ruby/test_process.rb (test_rlimit_nofile): fix r32734.
       move return statement again.

  Modified files:
    trunk/test/ruby/test_process.rb

Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 32737)
+++ test/ruby/test_process.rb	(revision 32738)
@@ -56,10 +56,10 @@
   end
 
   def test_rlimit_nofile
-    # if limit=0, this test freeze pn OpenBSD
+    return unless rlimit_exist?
     with_tmpchdir {
       write_file 's', <<-"End"
-	return unless rlimit_exist?
+	# if limit=0, this test freeze pn OpenBSD
 	limit = /openbsd/ =~ RUBY_PLATFORM ? 1 : 0
 	result = 1
 	begin

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

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