[macruby-changes] [4903] MacRuby/trunk/test/test-mri/test/ruby

source_changes at macosforge.org source_changes at macosforge.org
Sat Nov 13 21:19:01 PST 2010


Revision: 4903
          http://trac.macosforge.org/projects/ruby/changeset/4903
Author:   watson1978 at gmail.com
Date:     2010-11-13 21:18:57 -0800 (Sat, 13 Nov 2010)
Log Message:
-----------
modified the items of unit test.

Modified Paths:
--------------
    MacRuby/trunk/test/test-mri/test/ruby/test_argf.rb
    MacRuby/trunk/test/test-mri/test/ruby/test_io.rb
    MacRuby/trunk/test/test-mri/test/ruby/test_rubyoptions.rb

Modified: MacRuby/trunk/test/test-mri/test/ruby/test_argf.rb
===================================================================
--- MacRuby/trunk/test/test-mri/test/ruby/test_argf.rb	2010-11-14 00:30:36 UTC (rev 4902)
+++ MacRuby/trunk/test/test-mri/test/ruby/test_argf.rb	2010-11-14 05:18:57 UTC (rev 4903)
@@ -43,8 +43,6 @@
   end
 
   def ruby(*args)
-    skip("[BUG : #???] Timeout, MacRuby don't finish")
-
     args = ['-e', '$>.write($<.read)'] if args.empty?
     ruby = EnvUtil.rubybin
     f = IO.popen([ruby] + args, 'r+')

Modified: MacRuby/trunk/test/test-mri/test/ruby/test_io.rb
===================================================================
--- MacRuby/trunk/test/test-mri/test/ruby/test_io.rb	2010-11-14 00:30:36 UTC (rev 4902)
+++ MacRuby/trunk/test/test-mri/test/ruby/test_io.rb	2010-11-14 05:18:57 UTC (rev 4903)
@@ -753,6 +753,7 @@
   def pipe(wp, rp)
     r, w = IO.pipe
     rt = Thread.new { rp.call(r) }
+    sleep 0.2
     wt = Thread.new { wp.call(w) }
     flunk("timeout") unless rt.join(10) && wt.join(10)
   ensure
@@ -798,8 +799,6 @@
   end
 
   def test_dup
-    skip("[BUG : #???] Timeout, MacRuby don't finish")
-
     ruby do |f|
       f2 = f.dup
       f.puts "foo"
@@ -812,8 +811,6 @@
   end
 
   def test_dup_many
-    skip("[BUG : #???] Timeout, MacRuby don't finish")
-
     ruby('-e', <<-'End') {|f|
       ok = 0
       a = []
@@ -956,8 +953,6 @@
   end
 
   def test_close_read
-    skip("[BUG : #???] Timeout, MacRuby don't finish")
-
     ruby do |f|
       f.close_read
       f.write "foobarbaz"
@@ -989,8 +984,6 @@
   end
 
   def test_close_write
-    skip("[BUG : #???] Timeout, MacRuby don't finish")
-
     ruby do |f|
       f.write "foobarbaz"
       f.close_write
@@ -1015,8 +1008,6 @@
   end
 
   def test_pid
-    skip("[BUG : #???] Timeout, MacRuby don't finish")
-
     r, w = IO.pipe
     assert_equal(nil, r.pid)
     assert_equal(nil, w.pid)
@@ -1043,8 +1034,6 @@
   end
 
   def test_set_lineno
-    skip("[BUG : #???] Timeout, MacRuby don't finish")
-
     t = make_tempfile
 
     ruby("-e", <<-SRC, t.path) do |f|
@@ -1190,8 +1179,6 @@
   end
 
   def test_close_on_exec
-    skip("[BUG : #???] Timeout, MacRuby don't finish")
-
     skip "IO\#close_on_exec is not implemented." unless have_close_on_exec?
     ruby do |f|
       assert_equal(false, f.close_on_exec?)
@@ -1531,7 +1518,7 @@
   end
 
   def test_display
-    skip("[BUG : #???] Timeout, MacRuby don't finish")
+    skip("[BUG : #???] Assertion")
 
     pipe(proc do |w|
       "foo".display(w)
@@ -1575,8 +1562,6 @@
   end
 
   def test_new_with_block
-    skip("[BUG : #???] Timeout, MacRuby don't finish")
-
     assert_in_out_err([], "r, w = IO.pipe; IO.new(r) {}", [], /^.+$/)
   end
 

Modified: MacRuby/trunk/test/test-mri/test/ruby/test_rubyoptions.rb
===================================================================
--- MacRuby/trunk/test/test-mri/test/ruby/test_rubyoptions.rb	2010-11-14 00:30:36 UTC (rev 4902)
+++ MacRuby/trunk/test/test-mri/test/ruby/test_rubyoptions.rb	2010-11-14 05:18:57 UTC (rev 4903)
@@ -327,8 +327,6 @@
   end
 
   def test_program_name
-    skip("[BUG : #???] Timeout, MacRuby don't finish")
-
     ruby = EnvUtil.rubybin
     IO.popen([ruby, '-e', 'print $0']) {|f|
       assert_equal('-e', f.read)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101113/93c32220/attachment-0001.html>


More information about the macruby-changes mailing list