summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
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