summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-01 02:09:02 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-01 02:09:02 +0000
commited740754bd96e845bc86f070b90267efc1ad5136 (patch)
treead363ad7f1fc927bed3952fedab27051902e3f26
parent5ba15ec86f4e8aaa282a6dfd443dfc673cfde5e1 (diff)
skip unless PLATFORM is darwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_vm_dump.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/ruby/test_vm_dump.rb b/test/ruby/test_vm_dump.rb
index 9ea725f233e..7144a0cbc6d 100644
--- a/test/ruby/test_vm_dump.rb
+++ b/test/ruby/test_vm_dump.rb
@@ -2,19 +2,20 @@
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