Skip to content

Commit

Permalink
Pend some tests because these are not working with macOS 15 and Xcode 16
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Nov 6, 2024
1 parent fd950f2 commit 26909a7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
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 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 @@ -9,6 +9,8 @@ def yjit_enabled?
end

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

omit if ENV['RUBY_ON_BUG']

description = RUBY_DESCRIPTION
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 @@ -1837,6 +1837,8 @@ def test_daemon_default
end

def test_daemon_noclose
pend "macOS 15 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
2 changes: 2 additions & 0 deletions test/ruby/test_rubyoptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,8 @@ module SEGVTest
end

def assert_segv(args, message=nil)
pend "macOS 15 is not working with this assertion" if /darwin/ =~ RUBY_PLATFORM && /15/ =~ `sw_vers -productVersion`

omit if ENV['RUBY_ON_BUG']

# We want YJIT to be enabled in the subprocess if it's enabled for us
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 @@ -3,6 +3,8 @@

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

omit if RUBY_PLATFORM !~ /darwin/
assert_in_out_err(args, "", [], /^\[IMPORTANT\]/)
end
Expand Down

0 comments on commit 26909a7

Please sign in to comment.