llvm-project/llvm/utils
Zachary Turner 090871f206 [lit] Take the last error when executing pipelines.
This seems to have been present since the beginning of time,
which is quite surprising.  The symptom was this: Suppose you
have a test with a run line that looks like this:

  RUN: foo | FileCheck %s

foo prints some output and then due to a bug in the program it
asserts.  On Windows this results in the program returning a
negative exit code.  But if enough output had been printed
already by the tool so that the FileCheck match would succeed
then FileCheck would return 0, and because of bad logic in
lit this 0 return value would overwrite the failed return
value from previous items in the pipeline.  This only happened
with negative exit codes.

The most sensible behavior is to just take whatever the first
exit code is.  There is no logical ordering defined on exit
codes, so comparing with < and > does not make a lot of sense.
Instead, as soon as we find the first non-successful return
value, that should be the result of the entire expression.

This fixes the issue, as now tests which fail on non-Windows
platforms also fail for me on Windows as well.

llvm-svn: 303440
2017-05-19 18:12:07 +00:00
..
FileCheck Test commit. 2017-03-14 10:51:14 +00:00
KillTheDoctor
LLVMVisualizers
Misc
PerfectShuffle
TableGen [MVT] add v1i1 MVT 2017-05-18 11:29:41 +00:00
Target/ARM
abtest
bugpoint
count
crosstool
emacs
fpcmp
gdb-scripts Add GDB pretty-printer for llvm::Twine type 2017-03-15 20:51:44 +00:00
git
git-svn [git-llvm] Don't attempt to propget files that don't exist yet in SVN 2017-05-18 17:17:17 +00:00
jedit
kate
lint
lit [lit] Take the last error when executing pipelines. 2017-05-19 18:12:07 +00:00
llvm-build
llvm-lit
not
opt-viewer [opt-diff] Fix the case when the script is invoked with directories 2017-03-06 19:15:22 +00:00
release build_llvm_package.bat: Minor updates 2017-05-15 16:50:48 +00:00
sanitizers
testgen
textmate
unittest Note addition of NetBSD support in googletest 2017-05-06 02:45:42 +00:00
valgrind
vim vim: add `returned` keyword 2017-02-10 23:57:11 +00:00
vscode Adding VSCode syntax colorizer to utils (generated from textmate colorizer). 2017-05-09 17:13:37 +00:00
yaml-bench
DSAclean.py
DSAextract.py
GenLibDeps.pl
GetRepositoryPath
GetSourceVersion
LLVMBuild.txt
UpdateCMakeLists.pl
bisect
bisect-skip-count Fix bug in bisect-skip-count not using passed-in arguments 2017-03-04 03:23:41 +00:00
check-each-file
clang-parse-diagnostics-file
codegen-diff
countloc.sh
create_ladder_graph.py
extract_symbols.py
findmisopt
findoptdiff
findsym.pl
getsrcs.sh
lldbDataFormatters.py
llvm-compilers-check
llvm-native-gxx
llvm.grm
llvmdo
llvmgrep
makellvm
prepare-code-coverage-artifact.py [utils] coverage: Add help text about the --restrict flag (NFC) 2017-02-09 19:37:18 +00:00
schedcover.py
shuffle_fuzz.py
sort_includes.py
test_debuginfo.pl
update_llc_test_checks.py [PPC] Add generated tests for all atomic operations 2017-03-23 16:02:47 +00:00
update_test_checks.py
wciia.py