summaryrefslogtreecommitdiff
path: root/test/ruby/test_rubyoptions.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-09-10 15:37:32 +0900
committerNobuyoshi Nakada <[email protected]>2024-09-10 16:50:21 +0900
commit2d12fbc4db7d1501d8f2a6b464af165ec40f7f3c (patch)
tree68ed0a2e3cafb9e15d91379e04b348c794585444 /test/ruby/test_rubyoptions.rb
parenta3ba723ef09f0a42bb7ad31167a5457756e53f8d (diff)
Add predicates for platforms
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11583
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r--test/ruby/test_rubyoptions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 4d1a096298..f82861b8ce 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -876,7 +876,7 @@ class TestRubyOptions < Test::Unit::TestCase
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`
+ pend "macOS 15 beta is not working with this assertion" if macos?(15)
# We want YJIT to be enabled in the subprocess if it's enabled for us
# so that the Ruby description matches.
@@ -921,7 +921,7 @@ class TestRubyOptions < Test::Unit::TestCase
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`
+ pend "macOS 15 beta is not working with this assertion" if macos?(15)
Dir.mktmpdir("ruby_crash_report") do |dir|
list = SEGVTest::ExpectedStderrList