aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_marshal.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb
index 412039d106..e2e321bb41 100644
--- a/test/ruby/test_marshal.rb
+++ b/test/ruby/test_marshal.rb
@@ -730,11 +730,10 @@ class TestMarshal < Test::Unit::TestCase
crash = "\x04\bI/\x05\x00\x06:\x06E{\x06@\x05T"
opt = %w[--disable=gems]
- assert_ruby_status(opt, <<-RUBY)
-begin
- Marshal.load(#{crash.dump})
-rescue ArgumentError
-end
+ assert_separately(opt, <<-RUBY)
+ assert_raise_with_message(ArgumentError, /bad link/) do
+ Marshal.load(#{crash.dump})
+ end
RUBY
end
end