llvm-project/llvm/utils/lit/tests
Hans Wennborg c4b7e0125f Relax shtest-run-at-line.py
The test was failing on Windows machines which had bash.exe on PATH (but
not in the so called lit tools dir, containing cmp.exe, grep.exe etc.).

The problem was that the outer lit invocation would load LLVMConfig
from utils/lit/lit/llvm/config.py, which looks up the tools path with
getToolsPath(). That has a surprising side effect of also setting
bashPath, in our case setting it to empty.

The outer lit invocation would thus configure the pdbg0 and pdbg1
substitutions based on not running with bash.

But the inner lit invocation would not load LLVMConfig, so bash
would be found on PATH, that would be used as external shell,
and so the output wouldn't match pdbg0 and pdbg1.

It seems weird to me that getBashPath() will return different results
depending on whether getToolsPath() has been called before, but I
also don't know how to fix it properly.

This commit just relaxes the test case, because there doesn't seem
to be much point in testing for the exact syntax of the run file
as long as it works.

(See https://crbug.com/850023)

llvm-svn: 334100
2018-06-06 14:53:03 +00:00
..
Inputs [lit] Report line number for failed RUN command 2018-05-31 00:55:32 +00:00
unit [lit] Terminate ": RUN at line N" with ";" not "&&" 2018-05-31 03:40:37 +00:00
.coveragerc
boolean-parsing.py Reinstate "r292904 - [lit] Allow boolean expressions in REQUIRES and XFAIL 2017-01-25 02:26:03 +00:00
discovery.py [lit] Actually do normalize the case of files in the config map. 2017-09-21 21:27:11 +00:00
googletest-format.py [lit] Dump some FileCheck inputs to try to debug some failing tests 2017-07-28 16:24:18 +00:00
googletest-timeout.py [lit] Port googletest lit tests to Windows 2017-07-28 01:05:55 +00:00
googletest-upstream-format.py [lit] Port googletest lit tests to Windows 2017-07-28 01:05:55 +00:00
lit.cfg Relax shtest-run-at-line.py 2018-06-06 14:53:03 +00:00
lit.site.cfg.in Make check-lit tests respect LLVM_LIT_TOOLS_DIR 2017-11-29 18:05:26 +00:00
max-failures.py [lit] Report line number for failed RUN command 2018-05-31 00:55:32 +00:00
progress-bar.py
selecting.py [lit] Un-XFAIL selecting.py test on Windows 2017-07-26 21:48:41 +00:00
shell-parsing.py
shtest-encoding.py
shtest-format.py [lit] Report line number for failed RUN command 2018-05-31 00:55:32 +00:00
shtest-output-printing.py [lit] Report line number for failed RUN command 2018-05-31 00:55:32 +00:00
shtest-run-at-line.py Relax shtest-run-at-line.py 2018-06-06 14:53:03 +00:00
shtest-shell.py [lit] Terminate ": RUN at line N" with ";" not "&&" 2018-05-31 03:40:37 +00:00
shtest-timeout.py [lit] Try to make `shtest-timeout.py` test more reliable by using a 2018-05-22 15:06:29 +00:00
shtest-xunit-output.py Use quoteattr to ensure we make well formed attributes 2018-05-25 00:31:36 +00:00
test-data-micro.py [lit] - Allow 1 test to report multiple micro-test results to provide support for microbenchmarks. 2018-03-13 16:37:59 +00:00
test-data.py
test-output-micro.py [lit] - Allow 1 test to report multiple micro-test results to provide support for microbenchmarks. 2018-03-13 16:37:59 +00:00
test-output.py [LIT] Move xunit tests tests into their own location, and and add failures 2018-05-10 22:51:28 +00:00
unittest-adaptor.py Un-XFAIL some internal lit tests on Windows, they pass for me locally 2017-07-26 18:04:18 +00:00
usage.py
xunit-output.py Use quoteattr to ensure we make well formed attributes 2018-05-25 00:31:36 +00:00