[lit] Fix launching executables relative to the cwd after 'cd'
authorReid Kleckner <reid@kleckner.net>
Wed, 22 Jul 2015 21:35:27 +0000 (21:35 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 22 Jul 2015 21:35:27 +0000 (21:35 +0000)
commitbc6cbbfa80c26a1081c4a62fe4e98dd241486593
tree4ed4e0f33cfeda97dd9f746d7f75ba49ca09ef39
parente7aafe5ecc3a639c52b14707af91c8b36db0826b
[lit] Fix launching executables relative to the cwd after 'cd'

This was affecting test/asan/TestCases/Windows/coverage-basic.cc in
compiler-rt. It does something like:

  cd %T/mydir
  %clang %s -o t.exe
  ./t.exe

Previously, we'd end up looking for t.exe relative to the cwd of the lit
process, not the cwd of the test.

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