diff options
author | Joel E. Denny <jdenny.ornl@gmail.com> | 2019-10-10 17:39:24 +0000 |
---|---|---|
committer | Joel E. Denny <jdenny.ornl@gmail.com> | 2019-10-10 17:39:24 +0000 |
commit | df35ec8289eec85e9a551578b1b7ae35b214860f (patch) | |
tree | f617fcc78ed63c36fc8e314971527087cb3c2b95 /lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp | |
parent | c2cd2d40aa2e657c4f7bf0bac2594c9ea9611f43 (diff) | |
download | bcm5719-llvm-df35ec8289eec85e9a551578b1b7ae35b214860f.tar.gz bcm5719-llvm-df35ec8289eec85e9a551578b1b7ae35b214860f.zip |
[lit] Make internal diff work in pipelines
When using lit's internal shell, RUN lines like the following
accidentally execute an external `diff` instead of lit's internal
`diff`:
```
# RUN: program | diff file -
# RUN: not diff file1 file2 | FileCheck %s
```
Such cases exist now, in `clang/test/Analysis` for example. We are
preparing patches to ensure lit's internal `diff` is called in such
cases, which will then fail because lit's internal `diff` cannot
currently be used in pipelines and doesn't recognize `-` as a
command-line option.
To enable pipelines, this patch moves lit's `diff` implementation into
an out-of-process script, similar to lit's `cat` implementation. A
follow-up patch will implement `-` to mean stdin.
Reviewed By: probinson, stella.stamenova
Differential Revision: https://reviews.llvm.org/D66574
llvm-svn: 374388
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp')
0 files changed, 0 insertions, 0 deletions