diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-03 00:02:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-03 00:02:23 +0000 |
commit | 3b556825294f6444291e231973487cac8d55ee57 (patch) | |
tree | 5cfd907268f1f27b9729eb8a469b9e13c03c2b31 /test | |
parent | f34090ca4b6bd35e8f8ef66895285600bc4a7771 (diff) | |
download | ruby-3b556825294f6444291e231973487cac8d55ee57.tar.gz |
test_coverage.rb: use real path
* test/coverage/test_coverage.rb (test_restarting_coverage): use
real directory path for the case $TMPDIR contains symlinks. on
macOS, it is defaulted to a path under /var which is a symlink
to /private/var.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/coverage/test_coverage.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/coverage/test_coverage.rb b/test/coverage/test_coverage.rb index eaa6e329c5..4a57f8f1bb 100644 --- a/test/coverage/test_coverage.rb +++ b/test/coverage/test_coverage.rb @@ -67,6 +67,7 @@ class TestCoverage < Test::Unit::TestCase def test_restarting_coverage Dir.mktmpdir {|tmp| Dir.chdir(tmp) { + tmp = Dir.pwd File.open("test.rb", "w") do |f| f.puts <<-EOS def coverage_test_restarting |