Skip to content

Commit 6510cfb

Browse files
nobuko1
authored andcommitted
Add sleep to USE_TMP_HOME check for macOS
C.f. ruby/ruby#12691
1 parent ce67347 commit 6510cfb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/support/console_test_case.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ConsoleTestCase < TestCase
1818
pwd = Dir.pwd
1919
ruby = ENV['RUBY'] || RbConfig.ruby
2020
home_cannot_change = false
21-
PTY.spawn({ "HOME" => pwd }, ruby, '-e', 'puts ENV["HOME"]') do |r,|
21+
PTY.spawn({ "HOME" => pwd }, ruby, '-e', 'puts ENV["HOME"]; sleep 0.1') do |r,|
2222
home_cannot_change = r.gets.chomp != pwd
2323
end
2424
!home_cannot_change

0 commit comments

Comments
 (0)