Skip to content

Commit

Permalink
Disable a test about number of threads.
Browse files Browse the repository at this point in the history
  • Loading branch information
wks committed Feb 5, 2024
1 parent 4085f84 commit 2b04d0c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/ruby/test_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1930,7 +1930,8 @@ def test_daemon_detached
end
end

if File.directory?("/proc/self/task") && /netbsd[a-z]*[1-6]/ !~ RUBY_PLATFORM
# Note: MMTk has many GC worker threads, and they will be visible in /proc/self/task.
if File.directory?("/proc/self/task") && /netbsd[a-z]*[1-6]/ !~ RUBY_PLATFORM && !defined?(GC::MMTk)
def test_daemon_no_threads
pid, data = IO.popen("-", "r+") do |f|
break f.pid, f.readlines if f
Expand All @@ -1941,7 +1942,7 @@ def test_daemon_no_threads
assert_include(1..2, data.size, bug4920)
assert_not_include(data.map(&:to_i), pid)
end
else # darwin
else # darwin or MMTk
def test_daemon_no_threads
data = EnvUtil.timeout(3) do
IO.popen("-") do |f|
Expand Down

0 comments on commit 2b04d0c

Please sign in to comment.