ruby-changes:47596
From: ko1 <ko1@a...>
Date: Fri, 1 Sep 2017 11:09:08 +0900 (JST)
Subject: [ruby-changes:47596] ko1:r59712 (trunk): skip unless PLATFORM is darwin.
ko1 2017-09-01 11:09:02 +0900 (Fri, 01 Sep 2017) New Revision: 59712 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59712 Log: skip unless PLATFORM is darwin. Modified files: trunk/test/ruby/test_vm_dump.rb Index: test/ruby/test_vm_dump.rb =================================================================== --- test/ruby/test_vm_dump.rb (revision 59711) +++ test/ruby/test_vm_dump.rb (revision 59712) @@ -2,19 +2,20 @@ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_vm_dump.rb#L2 require 'test/unit' class TestVMDump < Test::Unit::TestCase - def assert_vm_dump_works(args) + def assert_darwin_vm_dump_works(args) + skip if RUBY_PLATFORM !~ /darwin/ assert_in_out_err(args, "", [], [:*, /^.* main \+ \d+$/, :*, /^\[IMPORTANT\]/, :*]) end def test_darwin_invalid_call - assert_vm_dump_works(['-rfiddle', '-eFiddle::Function.new(Fiddle::Pointer.new(1), [], Fiddle::TYPE_VOID).call']) + assert_darwin_vm_dump_works(['-rfiddle', '-eFiddle::Function.new(Fiddle::Pointer.new(1), [], Fiddle::TYPE_VOID).call']) end def test_darwin_segv_in_syscall - assert_vm_dump_works('-e1.times{Process.kill :SEGV,$$}') + assert_darwin_vm_dump_works('-e1.times{Process.kill :SEGV,$$}') end def test_darwin_invalid_access - assert_vm_dump_works(['-rfiddle', '-eFiddle.dlunwrap(100).class']) + assert_darwin_vm_dump_works(['-rfiddle', '-eFiddle.dlunwrap(100).class']) end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/