OSDN Git Service

Use os.path.realpath when tracking the cwd.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 30 Mar 2017 21:05:31 +0000 (21:05 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 30 Mar 2017 21:05:31 +0000 (21:05 +0000)
commit62aabaa87dbe9261ba97012e6c1aefe0d343e314
tree04db996a24a689f0062158725c680cf9acdec1e3
parentc1e48aa5eb037e9ab78b806997764f79f609c36c
Use os.path.realpath when tracking the cwd.

This is needed by TestCases/Posix/coverage-direct.cc

The problem is that the test does:

mkdir <dir>
cd <dir>
cd ..
rm -rf <dir>
<more commands>

the current directory currently looks like "/.../<dir>/../" which
doesn't exist when dir is deleted.

at some point we should probably switch to using the os current
directory (specially if we want to add subshell), but this is a small
incremental improvement.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299113 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/TestRunner.py