From 1e6a479520cb13f927399c97d363558b3beeaea7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 3 Dec 2025 10:41:39 +0900 Subject: 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. --- test/ruby/test_box.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/ruby') 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 -- cgit v1.2.3