summaryrefslogtreecommitdiff
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r--test/ruby/test_io.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index b3d543fc2f3..6cc2897f5f5 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -1763,10 +1763,15 @@ End
end
end
end
+ end
+
+ def test_invalid_advise
+ feature4204 = '[ruby-dev:42887]'
+ t = make_tempfile
%w{Normal rand glark will_need zzzzzzzzzzzz \u2609}.map(&:to_sym).each do |adv|
[[0,0], [0, 20], [400, 2]].each do |offset, len|
open(make_tempfile.path) do |t|
- assert_equal(t.advise(adv, offset, len), nil)
+ assert_raise(NotImplementedError, feature4204) { t.advise(adv, offset, len) }
end
end
end