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

ruby-changes:35691

From: hsbt <ko1@a...>
Date: Fri, 3 Oct 2014 21:02:57 +0900 (JST)
Subject: [ruby-changes:35691] hsbt:r47773 (trunk): * test/ruby/test_io.rb (TestIO#test_advise): avoid to infinite loop.

hsbt	2014-10-03 21:02:49 +0900 (Fri, 03 Oct 2014)

  New Revision: 47773

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

  Log:
    * test/ruby/test_io.rb (TestIO#test_advise): avoid to infinite loop.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_io.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47772)
+++ ChangeLog	(revision 47773)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Oct  3 21:02:32 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* test/ruby/test_io.rb (TestIO#test_advise): avoid to infinite loop.
+
 Fri Oct  3 19:26:01 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
 
 	* .travis.yml: enabled test results of linux.
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 47772)
+++ test/ruby/test_io.rb	(revision 47773)
@@ -2488,11 +2488,11 @@ End https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L2488
             ret = assert_nothing_raised(lambda { os_and_fs(tf.path) }) {
               begin
                 t.advise(adv, offset, len)
-              rescue Errno::EINVAL
+              rescue Errno::EINVAL => e
                 if /linux/ =~ RUBY_PLATFORM && (Etc.uname[:release].split('.').map(&:to_i) <=> [3,6]) < 0
                   next # [ruby-core:65355] tmpfs is not supported
                 else
-                  retry
+                  raise e
                 end
               end
             }

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

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