ruby-changes:47610
From: nobu <ko1@a...>
Date: Sun, 3 Sep 2017 09:02:29 +0900 (JST)
Subject: [ruby-changes:47610] nobu:r59725 (trunk): test_coverage.rb: use real path
nobu 2017-09-03 09:02:23 +0900 (Sun, 03 Sep 2017) New Revision: 59725 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59725 Log: 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. Modified files: trunk/test/coverage/test_coverage.rb Index: test/coverage/test_coverage.rb =================================================================== --- test/coverage/test_coverage.rb (revision 59724) +++ test/coverage/test_coverage.rb (revision 59725) @@ -67,6 +67,7 @@ class TestCoverage < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/coverage/test_coverage.rb#L67 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/