summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/tests/Inputs/shtest-shell/diff-in.utf8
Commit message (Collapse)AuthorAgeFilesLines
* [lit] Clean up internal diff's encoding handlingJoel E. Denny2019-10-161-0/+3
| | | | | | | | | | | | | | | | | | | | | As suggested by rnk at D67643#1673043, instead of reading files multiple times until an appropriate encoding is found, read them once as binary, and then try to decode what was read. For Python >= 3.5, don't fail when attempting to decode the `diff_bytes` output in order to print it. Avoid failures for Python 2.7 used on some Windows bots by transforming diff output with `lit.util.to_string` before writing it to stdout. Finally, add some tests for encoding handling. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D68664 llvm-svn: 375018
* Revert r374649: "Reland r374389: [lit] Clean up internal diff's encoding ↵Joel E. Denny2019-10-121-3/+0
| | | | | | | | handling" This series of patches still breaks a Windows bot. llvm-svn: 374682
* Reland r374389: [lit] Clean up internal diff's encoding handlingJoel E. Denny2019-10-121-0/+3
| | | | | | | | | | To avoid breaking some tests, D66574, D68664, D67643, and D68668 landed together. However, D68664 introduced an issue now addressed by D68839, with which these are now all relanding. Differential Revision: https://reviews.llvm.org/D68664 llvm-svn: 374649
* Revert r374389: "[lit] Clean up internal diff's encoding handling"Joel E. Denny2019-10-101-3/+0
| | | | | | This breaks a Windows bot. llvm-svn: 374427
* [lit] Clean up internal diff's encoding handlingJoel E. Denny2019-10-101-0/+3
As suggested by rnk at D67643#1673043, instead of reading files multiple times until an appropriate encoding is found, read them once as binary, and then try to decode what was read. For python >= 3.5, don't fail when attempting to decode the `diff_bytes` output in order to print it. Finally, add some tests for encoding handling. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D68664 llvm-svn: 374389
OpenPOWER on IntegriCloud