diff options
-rw-r--r-- | test/stringio/test_stringio.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb index 8afbcf3545..ae8e845497 100644 --- a/test/stringio/test_stringio.rb +++ b/test/stringio/test_stringio.rb @@ -237,8 +237,9 @@ class TestStringIO < Test::Unit::TestCase def test_write_integer_overflow f = StringIO.new - f.pos = RbConfig::LIMITS["LONG_MAX"] assert_raise(ArgumentError) { + # JRuby errors when setting pos to an out-of-range value + f.pos = RbConfig::LIMITS["LONG_MAX"] f.write("pos + len overflows") } end |