<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Lit fails some tests when PATH has quoted paths"
href="https://llvm.org/bugs/show_bug.cgi?id=26399">26399</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Lit fails some tests when PATH has quoted paths
</td>
</tr>
<tr>
<th>Product</th>
<td>Test Suite
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>lit
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>test35965@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>daniel@zuster.org, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=15768" name="attach_15768" title="An example of the output in a failing condition">attachment 15768</a> <a href="attachment.cgi?id=15768&action=edit" title="An example of the output in a failing condition">[details]</a></span>
An example of the output in a failing condition
In TestRunner.py, _executeShCmd (at line 292) fails when PATH has quoted paths
in it:
if not executable:
executable = lit.util.which(args[0], cmd_shenv.env['PATH'])
if not executable:
raise InternalShellError(j, '%r: command not found' % j.args[0])
...and well, the commands invoked are a bit problematic:
Command invoked:
env
"PATH=C:\LLVM\build\tools\clang\test\Driver\Output;C:/LLVM/build/Debug/bin;C:/LLVM/build/Debug/bin;C:\Program
Files (x86)\Microsoft Visual Studio 14.0\VC\bin;C:\Program Files (x86)\Windows
Kits\10\bin\x86;;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX
4.6 Tools;C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\Tools\bin;C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\tools;C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\ide;C:\Program Files (x86)\HTML Help Workshop;;C:\Program Files
(x86)\MSBuild\14.0\bin\;C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\;C:\WINDOWS\SysWow64;;C:\Program
Files (x86)\Microsoft Visual Studio
14.0\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team
Explorer\NativeBinaries\x86;C:\Program Files
(x86)\Python35-32\Scripts\;C:\Program Files
(x86)\Python35-32\;C:\Fossil;C:\Tcl\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program
Files\CollabNet\Subversion
Client;C:\Python34\;C:\Python27\;C:\Python34\Scripts;C:\Program Files
(x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS
Client\;C:\Program Files\Intel\iCLS
Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\Common Files\Acronis\SnapAPI\;C:\Program Files
(x86)\PharosSystems\Core;C:\Program Files (x86)\Windows Kits\8.1\Windows
Performance Toolkit\;C:\Program Files\Microsoft SQL
Server\110\Tools\Binn\;C:\gtk\bin;C:\Program Files\Microsoft\Web Platform
Installer\;C:\Program Files (x86)\Universal Extractor;C:\Program Files
(x86)\Universal Extractor\bin;C:\Program Files (x86)\Microsoft
SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL
Server\120\Tools\Binn\;C:\chromium_workspace\depot_tools;C:\Program Files
(x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files
(x86)\Windows Phone TShell\;C:\Program Files (x86)\CMake\bin;C:\Program
Files\TortoiseHg\;C:\Program Files (x86)\GnuWin32\bin;C:\Program Files
(x86)\NVIDIA Corporation\PhysX\Common;C:\Python27\;C:\Python33\;C:\Program
Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS
Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program
Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files
(x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files
(x86)\Intel\Intel(R) Management Engine
Components\IPT;%JAVA_HOME%\bin;C:\Python33\Scripts;C:\Program Files (x86)\Nmap;
C:\Windows\System32\wbin\;C:\wbin;"C:\Users\Alexander
Riccio\AppData\Local\nasm";" C:/LLVM/build/Debug/bin/clang.EXE -target
x86_64-scei-ps4 C:\LLVM\llvm\tools\clang\test\Driver\ps4-linker-win.c -###
2>&1 | C:/LLVM/build/Debug/bin\FileCheck.EXE --check-prefix=CHECK-PS4-LINKER
C:\LLVM\llvm\tools\clang\test\Driver\ps4-linker-win.c
Output:
59> Command 2: "Riccio\AppData\Local\nasm;"
"C:/LLVM/build/Debug/bin/clang.EXE" "-target" "x86_64-scei-ps4"
"C:\LLVM\llvm\tools\clang\test\Driver\ps4-linker-win.c" "-fuse-ld=gold" "-###"
59> Command 2 Result: 127
59> Command 2 Output:
59>
59>
59> Command 2 Stderr:
59> 'Riccio\\AppData\\Local\\nasm;': command not found
...which causes a test to fail.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>