diff options
author | Joel E. Denny <jdenny.ornl@gmail.com> | 2019-09-16 21:22:29 +0000 |
---|---|---|
committer | Joel E. Denny <jdenny.ornl@gmail.com> | 2019-09-16 21:22:29 +0000 |
commit | 2152ae985c28ff10e6f4d4b674ae9b144ecb04c0 (patch) | |
tree | 3fcdd09272327c69b44f23af971e627540fc57a9 /lldb/packages/Python/lldbsuite/test/api/multiple-debuggers/TestMultipleDebuggers.py | |
parent | c1c519d2f1a66dd2eeaa4c321d8d7b50f623eb71 (diff) | |
download | bcm5719-llvm-2152ae985c28ff10e6f4d4b674ae9b144ecb04c0.tar.gz bcm5719-llvm-2152ae985c28ff10e6f4d4b674ae9b144ecb04c0.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: 372035
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/api/multiple-debuggers/TestMultipleDebuggers.py')
0 files changed, 0 insertions, 0 deletions