<html>
<head>
<base href="https://bugs.llvm.org/">
</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 line-number reporting (r330755) breaks on Windows/cmd.exe"
href="https://bugs.llvm.org/show_bug.cgi?id=37239">37239</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Lit line-number reporting (r330755) breaks on Windows/cmd.exe
</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>jeremy.morse.llvm@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>daniel@zuster.org, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Hi,
r330755 introduces a feature in lit where the source "RUN" line number is
included in the failing command -- unfortunately this doesn't seem to work well
on Windows (10), and is breaking on a build bot [0]. Looking at the
shtest-run-at-line test, it recursively calls lit onto
utils/lit/tests/Inputs/shtest-run-at-line/external-shell/basic.txt. The batch
script generated for that test is:
--------8<--------
@echo off
: 'RUN: at line 1'; true
if %ERRORLEVEL% NEQ 0 EXIT
: 'RUN: at line 2'; false
if %ERRORLEVEL% NEQ 0 EXIT
: 'RUN: at line 3'; true
-------->8--------
Under unix shell, the ':' null command would just be discarded. cmd.exe however
interprets the whole line as a label [1], and none of the commands are ever
run.
[0] <a href="http://lab.llvm.org:8011/builders/clang-x64-ninja-win7">http://lab.llvm.org:8011/builders/clang-x64-ninja-win7</a>
[1]
<a href="https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/goto">https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/goto</a></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>