summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2025-12-03 10:41:39 +0900
committerNobuyoshi Nakada <nobu.nakada@gmail.com>2025-12-09 23:41:50 +0900
commit1e6a479520cb13f927399c97d363558b3beeaea7 (patch)
treea28b65f775ac77c02f75b4fa0f8966b3bc24c5f9 /test/ruby
parent07e85e1dba3e15c714044660f731a90ce86c8c24 (diff)
Box: relax the condition of clean up
It is impossible to delete DLLs being loaded on Windows. I guess that unnamed (no accessible path on the filesystem) files are not allowed essentially. The only way is to relax the condition, such as no files are left after the process terminated, probably.
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_box.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/ruby/test_box.rb b/test/ruby/test_box.rb
index 1daf5d57d5..5d06b60cd7 100644
--- a/test/ruby/test_box.rb
+++ b/test/ruby/test_box.rb
@@ -828,12 +828,11 @@ class TestBox < Test::Unit::TestCase
require 'tmpdir'
Dir.mktmpdir do |tmpdir|
env = ENV_ENABLE_BOX.merge({'TMPDIR'=>tmpdir})
- assert_separately([env], __FILE__, __LINE__, "#{<<~"begin;"}\n#{<<~'end;'}", ignore_stderr: true)
+ assert_ruby_status([env], "#{<<~"begin;"}\n#{<<~'end;'}")
begin;
require "json"
- tmpdirname = ENV['TMPDIR']
- assert_empty(Dir.children(tmpdirname))
end;
+ assert_empty(Dir.children(tmpdir))
end
end
end