Skip to content

Commit

Permalink
Increase timeout in test_darwin_invalid_call method
Browse files Browse the repository at this point in the history
  • Loading branch information
ono-max authored and mame committed Aug 9, 2024
1 parent 77ffdfe commit f57167d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/ruby/test_vm_dump.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
return unless /darwin/ =~ RUBY_PLATFORM

class TestVMDump < Test::Unit::TestCase
def assert_darwin_vm_dump_works(args)
def assert_darwin_vm_dump_works(args, timeout=nil)
pend "macOS 15 beta is not working with this assertion" if /darwin/ =~ RUBY_PLATFORM && /15/ =~ `sw_vers -productVersion`

assert_in_out_err(args, "", [], /^\[IMPORTANT\]/, timeout: 60)
assert_in_out_err(args, "", [], /^\[IMPORTANT\]/, timeout: timeout || 60)
end

def test_darwin_invalid_call
assert_darwin_vm_dump_works(['-r-test-/fatal', '-eBug.invalid_call(1)'])
assert_darwin_vm_dump_works(['-r-test-/fatal', '-eBug.invalid_call(1)'], 180)
end

def test_darwin_segv_in_syscall
Expand Down

0 comments on commit f57167d

Please sign in to comment.