summaryrefslogtreecommitdiff
path: root/utils/lit/tests/shtest-encoding.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-08-14 15:24:58 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-08-14 15:24:58 +0000
commit47e7c040f4e03a5fd162ee7c8ea061cfe873eb23 (patch)
tree9a5cc7f40be9f8dd21782c6d6d9fabd4063676c1 /utils/lit/tests/shtest-encoding.py
parent73cd0c844ba6c46ddb94405ee28246f084a13a12 (diff)
downloadllvm-47e7c040f4e03a5fd162ee7c8ea061cfe873eb23.tar.gz
llvm-47e7c040f4e03a5fd162ee7c8ea061cfe873eb23.tar.bz2
llvm-47e7c040f4e03a5fd162ee7c8ea061cfe873eb23.tar.xz
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit/tests/shtest-encoding.py')
-rw-r--r--utils/lit/tests/shtest-encoding.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/lit/tests/shtest-encoding.py b/utils/lit/tests/shtest-encoding.py
new file mode 100644
index 0000000000..dfc987f6df
--- /dev/null
+++ b/utils/lit/tests/shtest-encoding.py
@@ -0,0 +1,3 @@
+# RUN: true
+
+# Here is a string that cannot be decoded in line mode: Â.