[libcxx] r299056 - libc++ testing: fix assertion around `use_system_cxx_lib`

Mehdi Amini via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 29 22:07:18 PDT 2017


Author: mehdi_amini
Date: Thu Mar 30 00:07:18 2017
New Revision: 299056

URL: http://llvm.org/viewvc/llvm-project?rev=299056&view=rev
Log:
libc++ testing: fix assertion around `use_system_cxx_lib`

Actually fix (hopefully) the assertions about `use_system_cxx_lib`,
the previous attempt failed because I misread the error.

Modified:
    libcxx/trunk/utils/libcxx/test/config.py

Modified: libcxx/trunk/utils/libcxx/test/config.py
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/utils/libcxx/test/config.py?rev=299056&r1=299055&r2=299056&view=diff
==============================================================================
--- libcxx/trunk/utils/libcxx/test/config.py (original)
+++ libcxx/trunk/utils/libcxx/test/config.py Thu Mar 30 00:07:18 2017
@@ -279,8 +279,8 @@ class Configuration(object):
             self.use_system_cxx_lib = True
         elif self.use_system_cxx_lib == 'false':
             self.use_system_cxx_lib = False
-        else:
-            assert os.path.isdir(str(self.use_system_cxx_lib))
+        else if self.use_system_cxx_lib:
+            assert os.path.isdir(self.use_system_cxx_lib)
         self.lit_config.note(
             "inferred use_system_cxx_lib as: %r" % self.use_system_cxx_lib)
 




More information about the cfe-commits mailing list