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

ruby-changes:21196

From: naruse <ko1@a...>
Date: Sat, 10 Sep 2011 19:34:24 +0900 (JST)
Subject: [ruby-changes:21196] naruse:r33245 (trunk): Revert test fixes.

naruse	2011-09-10 19:34:15 +0900 (Sat, 10 Sep 2011)

  New Revision: 33245

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

  Log:
    Revert test fixes.
    
    This reverts r33233, r33234, and r33235.

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

Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 33244)
+++ test/ruby/test_process.rb	(revision 33245)
@@ -1236,7 +1236,6 @@
   end if File.executable?("/bin/sh")
 
   def test_too_long_path
-    GC.start
     bug4314 = '[ruby-core:34842]'
     exs = [Errno::ENOENT]
     exs << Errno::E2BIG if defined?(Errno::E2BIG)
@@ -1244,7 +1243,6 @@
   end
 
   def test_too_long_path2
-    GC.start
     bug4315 = '[ruby-core:34833]'
     exs = [Errno::ENOENT]
     exs << Errno::E2BIG if defined?(Errno::E2BIG)
Index: test/ruby/test_thread.rb
===================================================================
--- test/ruby/test_thread.rb	(revision 33244)
+++ test/ruby/test_thread.rb	(revision 33245)
@@ -237,16 +237,13 @@
     assert_equal(-1, t1.priority)
     assert_equal(-3, t2.priority)
     sleep 0.5
-
-    r1 = r2 = 0
     5.times do
-      c1 > c2 ? r1+=1 : r2+=1
-      c1 = c2 = 0
+      break if c1 > c2
       sleep 0.1
     end
     t1.kill
     t2.kill
-    assert_operator(r1, :>, r2, "[ruby-dev:33124]") # not guaranteed
+    assert_operator(c1, :>, c2, "[ruby-dev:33124]") # not guaranteed
   end
 
   def test_new

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

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