Index: llvm/trunk/utils/lit/lit/Test.py =================================================================== --- llvm/trunk/utils/lit/lit/Test.py +++ llvm/trunk/utils/lit/lit/Test.py @@ -378,10 +378,15 @@ fil.write(testcase_xml) if self.result.code.isFailure: fil.write(">\n\t", "]]]]>")) Index: llvm/trunk/utils/lit/lit/llvm/config.py =================================================================== --- llvm/trunk/utils/lit/lit/llvm/config.py +++ llvm/trunk/utils/lit/lit/llvm/config.py @@ -299,7 +299,7 @@ 'count'), verbatim=True, unresolved='fatal'), ToolSubst(r'\| \bnot\b', command=FindTool('not'), verbatim=True, unresolved='fatal')] - self.config.substitutions.append(('%python', "'%s'" % (sys.executable))) + self.config.substitutions.append(('%python', '"%s"' % (sys.executable))) self.add_tool_substitutions( tool_patterns, [self.config.llvm_tools_dir]) Index: llvm/trunk/utils/lit/tests/Inputs/shtest-env/lit.cfg =================================================================== --- llvm/trunk/utils/lit/tests/Inputs/shtest-env/lit.cfg +++ llvm/trunk/utils/lit/tests/Inputs/shtest-env/lit.cfg @@ -6,4 +6,4 @@ config.test_exec_root = None config.environment['FOO'] = '1' config.environment['BAR'] = '2' -config.substitutions.append(('%{python}', "'%s'" % (sys.executable))) +config.substitutions.append(('%{python}', '"%s"' % (sys.executable))) Index: llvm/trunk/utils/lit/tests/Inputs/shtest-shell/lit.cfg =================================================================== --- llvm/trunk/utils/lit/tests/Inputs/shtest-shell/lit.cfg +++ llvm/trunk/utils/lit/tests/Inputs/shtest-shell/lit.cfg @@ -4,4 +4,4 @@ config.test_format = lit.formats.ShTest() config.test_source_root = None config.test_exec_root = None -config.substitutions.append(('%{python}', "'%s'" % (sys.executable))) +config.substitutions.append(('%{python}', '"%s"' % (sys.executable))) Index: llvm/trunk/utils/lit/tests/Inputs/shtest-timeout/lit.cfg =================================================================== --- llvm/trunk/utils/lit/tests/Inputs/shtest-timeout/lit.cfg +++ llvm/trunk/utils/lit/tests/Inputs/shtest-timeout/lit.cfg @@ -29,4 +29,4 @@ config.target_triple = '(unused)' src_root = os.path.join(config.test_source_root, '..') config.environment['PYTHONPATH'] = src_root -config.substitutions.append(('%{python}', "'%s'" % (sys.executable))) +config.substitutions.append(('%{python}', '"%s"' % (sys.executable))) Index: llvm/trunk/utils/lit/tests/lit.cfg =================================================================== --- llvm/trunk/utils/lit/tests/lit.cfg +++ llvm/trunk/utils/lit/tests/lit.cfg @@ -40,7 +40,7 @@ src_root, 'tests', 'Inputs'))) config.substitutions.append(('%{lit}', "%%{python} %s" % ( os.path.join(lit_path, 'lit.py'),))) -config.substitutions.append(('%{python}', "'%s'" % (sys.executable))) +config.substitutions.append(('%{python}', '"%s"' % (sys.executable))) # Enable coverage.py reporting, assuming the coverage module has been installed Index: llvm/trunk/utils/lit/tests/shtest-timeout.py =================================================================== --- llvm/trunk/utils/lit/tests/shtest-timeout.py +++ llvm/trunk/utils/lit/tests/shtest-timeout.py @@ -1,8 +1,5 @@ # REQUIRES: python-psutil -# PR33944 -# XFAIL: windows - # FIXME: This test is fragile because it relies on time which can # be affected by system performance. In particular we are currently # assuming that `short.py` can be successfully executed within 2