From: NAKAMURA Takumi Date: Thu, 24 Feb 2011 12:34:34 +0000 (+0000) Subject: test/lit.cfg: Add PATHEXT to 'substitution', to recognize tools on Windows hosts... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=027f98cd3bf0c144cd8dadc6e59b373cbd17e084;p=oota-llvm.git test/lit.cfg: Add PATHEXT to 'substitution', to recognize tools on Windows hosts. Thanks to Danil Malyshev! Some tests on Windows use the "not" utility and fail with an error "program not executable". The reason for this error is that the name of the executable file sended to the "not" without the extension. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126383 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/lit.cfg b/test/lit.cfg index 9a4cfa4d388..9a2f74c21c9 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -175,6 +175,10 @@ for sub in ['llvmgcc', 'llvmgxx', 'emitir', 'compile_cxx', 'compile_c', # (llvm_tools_dir in lit parlance). # Don't match 'bugpoint-' or 'clang-'. # Don't match '/clang'. +if os.pathsep == ';': + pathext = os.environ.get('PATHEXT', '').split(';') +else: + pathext = [''] for pattern in [r"\bbugpoint\b(?!-)", r"(?