]> granicus.if.org Git - llvm/commit
[test] Fix append_path in the empty case
authorFrancis Ricci <francisjricci@gmail.com>
Wed, 4 Oct 2017 17:30:28 +0000 (17:30 +0000)
committerFrancis Ricci <francisjricci@gmail.com>
Wed, 4 Oct 2017 17:30:28 +0000 (17:30 +0000)
commita0070218a51040245e43426997f6deb451b00c75
treec6a9a6acb94955fc906f77a6ede31fb0af9ee7ef
parent406408a5da0900960756838e502d5bf9bef35918
[test] Fix append_path in the empty case

Summary:
normpath() was being called on an empty string and appended to
the environment variable in the case where the environment variable
was unset. This led to ":." being appended to the path, since
normpath() of an empty string is '.', presumably to represent cwd.

Reviewers: zturner, sqlbyme, modocache

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D38542

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