diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2013-08-14 15:24:58 +0000 | 
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2013-08-14 15:24:58 +0000 | 
| commit | cf0702601a1b2ef2430c7af2a5c4b3c4b21608b0 (patch) | |
| tree | 127aaeb9dc980016cde76f932fab3acd6d7adecc /llvm/utils/lit/tests/shtest-encoding.py | |
| parent | ede1aa2d3123f52ad99d951d4b8e8ac8a342b1f0 (diff) | |
| download | llvm-cf0702601a1b2ef2430c7af2a5c4b3c4b21608b0.zip llvm-cf0702601a1b2ef2430c7af2a5c4b3c4b21608b0.tar.gz llvm-cf0702601a1b2ef2430c7af2a5c4b3c4b21608b0.tar.bz2 | |
[lit] Support parsing scripts with inconsistent or invalid encodings.
 - For whatever reason, we have a lot of test files with bogus unicode
   characters. This patch allows those scripts to still be parsed on Python3 by
   changing the parsing logic to work on binary files, and only require the
   actual script commands to be convertible to ascii.
llvm-svn: 188376
Diffstat (limited to 'llvm/utils/lit/tests/shtest-encoding.py')
| -rw-r--r-- | llvm/utils/lit/tests/shtest-encoding.py | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/llvm/utils/lit/tests/shtest-encoding.py b/llvm/utils/lit/tests/shtest-encoding.py new file mode 100644 index 0000000..dfc987f --- /dev/null +++ b/llvm/utils/lit/tests/shtest-encoding.py @@ -0,0 +1,3 @@ +# RUN: true + +# Here is a string that cannot be decoded in line mode: Â. | 
