summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/tests
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
commitcf0702601a1b2ef2430c7af2a5c4b3c4b21608b0 (patch)
tree127aaeb9dc980016cde76f932fab3acd6d7adecc /llvm/utils/lit/tests
parentede1aa2d3123f52ad99d951d4b8e8ac8a342b1f0 (diff)
downloadbcm5719-llvm-cf0702601a1b2ef2430c7af2a5c4b3c4b21608b0.tar.gz
bcm5719-llvm-cf0702601a1b2ef2430c7af2a5c4b3c4b21608b0.zip
[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')
-rw-r--r--llvm/utils/lit/tests/shtest-encoding.py3
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 00000000000..dfc987f6df7
--- /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: Â.
OpenPOWER on IntegriCloud