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

ruby-changes:1953

From: ko1@a...
Date: 14 Sep 2007 17:31:43 +0900
Subject: [ruby-changes:1953] ko1 - Ruby:r13444 (trunk): * test/ruby/test_io.rb: tests which cause SEGV should not be

ko1	2007-09-14 17:31:24 +0900 (Fri, 14 Sep 2007)

  New Revision: 13444

  Modified files:
    trunk/ChangeLog
    trunk/bootstraptest/test_knownbug.rb
    trunk/test/ruby/test_io.rb

  Log:
    * test/ruby/test_io.rb: tests which cause SEGV should not be
      added.
    * bootstraptest/test_knownbug.rb: add above test to known bug.
    


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_io.rb?r1=13444&r2=13443
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13444&r2=13443
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_knownbug.rb?r1=13444&r2=13443

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 13443)
+++ ChangeLog	(revision 13444)
@@ -1,3 +1,10 @@
+Fri Sep 14 17:28:32 2007  Koichi Sasada  <ko1@a...>
+
+	* test/ruby/test_io.rb: tests which cause SEGV should not be
+	  added.
+
+	* bootstraptest/test_knownbug.rb: add above test to known bug.
+
 Fri Sep 14 16:24:04 2007  Koichi Sasada  <ko1@a...>
 
 	* insnhelper.ci (vm_expandarray): assignment should be placed
Index: bootstraptest/test_knownbug.rb
===================================================================
--- bootstraptest/test_knownbug.rb	(revision 13443)
+++ bootstraptest/test_knownbug.rb	(revision 13444)
@@ -2,3 +2,16 @@
 # This test file concludes tests which point out known bugs.
 # So all tests will cause failure.
 #
+
+assert_equal 'ok', %q{
+begin
+  r, w = IO.pipe
+  w.close
+  # assert_raise(IOError, "[ruby-dev:31650]") { 20000.times { r.ungetc "a" } }
+  20000.times { r.ungetc "a" }
+rescue IOError
+  :ok
+ensure
+  r.close
+end
+}, 'rename test/ruby/test_io.rb#_test_ungetc if fixed'
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 13443)
+++ test/ruby/test_io.rb	(revision 13444)
@@ -36,7 +36,8 @@
     r.close
   end
 
-  def test_ungetc
+  # This test cause SEGV.
+  def _test_ungetc
     r, w = IO.pipe
     w.close
     assert_raise(IOError, "[ruby-dev:31650]") { 20000.times { r.ungetc "a" } }

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

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