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

ruby-changes:42034

From: nobu <ko1@a...>
Date: Tue, 15 Mar 2016 09:47:53 +0900 (JST)
Subject: [ruby-changes:42034] nobu:r54108 (trunk): test_marshal.rb: use assert_ruby_status

nobu	2016-03-15 09:47:46 +0900 (Tue, 15 Mar 2016)

  New Revision: 54108

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

  Log:
    test_marshal.rb: use assert_ruby_status
    
    * test/ruby/test_marshal.rb (test_marshal_load_extended_class_crash):
      use assert_ruby_status to deal with signals, core dump and
      diagnostic reports.

  Modified files:
    trunk/test/ruby/test_marshal.rb
Index: test/ruby/test_marshal.rb
===================================================================
--- test/ruby/test_marshal.rb	(revision 54107)
+++ test/ruby/test_marshal.rb	(revision 54108)
@@ -723,10 +723,6 @@ class TestMarshal < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_marshal.rb#L723
     crash = "\x04\be:\x0F\x00omparableo:\vObject\x00"
 
     opt = %w[--disable=gems]
-    args = [opt, "Marshal.load(#{crash.dump})", true, true]
-    out, err, status = EnvUtil.invoke_ruby(*args)
-
-    assert_empty err
-    assert_predicate(status, :success?)
+    assert_ruby_status(opt, "Marshal.load(#{crash.dump})")
   end
 end

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

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