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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2014-10-03 12:02:49 +00:00
parent d36f3e3b43
commit 5207d9f158
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Fri Oct 3 21:02:32 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* test/ruby/test_io.rb (TestIO#test_advise): avoid to infinite loop.
Fri Oct 3 19:26:01 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* .travis.yml: enabled test results of linux.

View File

@ -2488,11 +2488,11 @@ End
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
}