Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Skip tests with macOS 15 beta and Xcode 16 beta #11155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions spec/ruby/core/process/daemon_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require_relative 'fixtures/common'

platform_is_not :windows do
# macOS 15 beta is not working this examples
return if /darwin/ =~ RUBY_PLATFORM && /15/ =~ `sw_vers -productVersion`

describe :process_daemon_keep_stdio_open_false, shared: true do
it "redirects stdout to /dev/null" do
@daemon.invoke("keep_stdio_open_false_stdout", @object).should == ""
Expand Down
2 changes: 2 additions & 0 deletions test/-ext-/bug_reporter/test_bug_reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

class TestBugReporter < Test::Unit::TestCase
def test_bug_reporter_add
pend "macOS 15 beta is not working with this test" if /darwin/ =~ RUBY_PLATFORM && /15/ =~ `sw_vers -productVersion`

omit "flaky with RJIT" if JITSupport.rjit_enabled?
description = RUBY_DESCRIPTION.sub(/\+PRISM /, '')
description = description.sub(/\+RJIT /, '') unless JITSupport.rjit_force_enabled?
Expand Down
2 changes: 2 additions & 0 deletions test/ruby/test_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1869,6 +1869,8 @@ def test_daemon_default
end

def test_daemon_noclose
pend "macOS 15 beta is not working with this test" if /darwin/ =~ RUBY_PLATFORM && /15/ =~ `sw_vers -productVersion`

data = IO.popen("-", "r+") do |f|
break f.read if f
Process.daemon(false, true)
Expand Down
4 changes: 4 additions & 0 deletions test/ruby/test_rubyoptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,8 @@ module SEGVTest
end

def assert_segv(args, message=nil, list: SEGVTest::ExpectedStderrList, **opt, &block)
pend "macOS 15 beta is not working with this assertion" if /darwin/ =~ RUBY_PLATFORM && /15/ =~ `sw_vers -productVersion`

# We want YJIT to be enabled in the subprocess if it's enabled for us
# so that the Ruby description matches.
env = Hash === args.first ? args.shift : {}
Expand Down Expand Up @@ -900,6 +902,8 @@ def test_segv_setproctitle
end

def assert_crash_report(path, cmd = nil, &block)
pend "macOS 15 beta is not working with this assertion" if /darwin/ =~ RUBY_PLATFORM && /15/ =~ `sw_vers -productVersion`

Dir.mktmpdir("ruby_crash_report") do |dir|
list = SEGVTest::ExpectedStderrList
if cmd
Expand Down
2 changes: 2 additions & 0 deletions test/ruby/test_vm_dump.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

class TestVMDump < Test::Unit::TestCase
def assert_darwin_vm_dump_works(args)
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)
end

Expand Down
Loading