summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/utils/lit/lit/TestRunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/lit/lit/TestRunner.py b/llvm/utils/lit/lit/TestRunner.py
index 894159ee7bf..2e6c37c0f31 100644
--- a/llvm/utils/lit/lit/TestRunner.py
+++ b/llvm/utils/lit/lit/TestRunner.py
@@ -252,7 +252,7 @@ def _executeShCmd(cmd, shenv, results, timeoutHelper):
if os.path.isabs(newdir):
shenv.cwd = newdir
else:
- shenv.cwd = os.path.join(shenv.cwd, newdir)
+ shenv.cwd = os.path.realpath(os.path.join(shenv.cwd, newdir))
# The cd builtin always succeeds. If the directory does not exist, the
# following Popen calls will fail instead.
return 0
OpenPOWER on IntegriCloud