[test] Fix clang-test for FreeBSD and NetBSD
authorTim Shen <timshen91@gmail.com>
Tue, 24 Oct 2017 03:11:02 +0000 (03:11 +0000)
committerTim Shen <timshen91@gmail.com>
Tue, 24 Oct 2017 03:11:02 +0000 (03:11 +0000)
commitcc5bf00f1deef51a358a2326efd70743641ce911
treeb1ecd093fc97e9cb9b7ed342bf30911ec2d6aa96
parent23e54d85be311b12131d89a1e2b7be6dcae19db9
[test] Fix clang-test for FreeBSD and NetBSD

Lit tries to inject the shared library paths, but no action is taken
when platform.system() is not recognized, results in an environment
variable with an empty name, which is illegal.

The patch fixes this mechanism for FreeBSD and NetBSD, and gives an
warning on other platforms, so that the latecomers don't have to spend
time on debugging lit.

Thanks Zhihao Yuan for the patch!

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

llvm-svn: 316411
clang/test/Unit/lit.cfg.py