From 21e47d9ff848457a3e21a22eb187c304cee313d6 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Thu, 6 Dec 2018 20:09:15 +0000 Subject: [PATCH] [libcxx] Always convert 'use_system_cxx_lib' to an absolute path Otherwise, some tests would fail when a relative path was passed, because they'd use the relative path from a different directory than the current working directory. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@348525 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/libcxx/test/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/libcxx/test/config.py b/utils/libcxx/test/config.py index bdedd513c..25506852e 100644 --- a/utils/libcxx/test/config.py +++ b/utils/libcxx/test/config.py @@ -307,6 +307,7 @@ class Configuration(object): self.use_system_cxx_lib = False elif self.use_system_cxx_lib: assert os.path.isdir(self.use_system_cxx_lib), "the specified use_system_cxx_lib parameter (%s) is not a valid directory" % self.use_system_cxx_lib + self.use_system_cxx_lib = os.path.abspath(self.use_system_cxx_lib) self.lit_config.note( "inferred use_system_cxx_lib as: %r" % self.use_system_cxx_lib)